From: Michael Wallner Date: Fri, 30 Oct 2020 12:38:29 +0000 (+0100) Subject: fix memleak X-Git-Tag: 1.1.0-beta1~144 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f2ab0a0c16503c35c23c6ad1ba11913d054ccdad;p=awesomized%2Flibmemcached fix memleak --- diff --git a/test/tests/memcached/value_flags.cpp b/test/tests/memcached/value_flags.cpp index b7b31d24..20300974 100644 --- a/test/tests/memcached/value_flags.cpp +++ b/test/tests/memcached/value_flags.cpp @@ -32,6 +32,7 @@ TEST_CASE("memcached_value_flags") { REQUIRE(len == size); REQUIRE_FALSE(memcmp(rv, blob.get(), len)); REQUIRE(flag == flg); + free(rv); } REQUIRE_RC(MEMCACHED_END, rc); }