fix memleak
authorMichael Wallner <mike@php.net>
Fri, 30 Oct 2020 12:38:29 +0000 (13:38 +0100)
committerMichael Wallner <mike@php.net>
Fri, 30 Oct 2020 12:38:29 +0000 (13:38 +0100)
test/tests/memcached/value_flags.cpp

index b7b31d243776a5964cbe8af93098c4b46c7f2dd3..2030097413d5b50bc4e76b899357bfbd8b82e69c 100644 (file)
@@ -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);
   }