From: Brian Aker Date: Mon, 21 Jan 2008 21:09:56 +0000 (-0800) Subject: Fix lack of free() in bug (quiet valgrind) X-Git-Tag: 0.14~4^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=fcd2bce48451825f32f05add83ced0923794d19a;p=awesomized%2Flibmemcached Fix lack of free() in bug (quiet valgrind) --- diff --git a/tests/function.c b/tests/function.c index 320eb1da..514fe3c2 100644 --- a/tests/function.c +++ b/tests/function.c @@ -1630,6 +1630,7 @@ uint8_t user_supplied_bug12(memcached_st *memc) &value_length, &flags, &rc); assert(value); assert(rc == MEMCACHED_SUCCESS); + free(value); rc= memcached_increment(memc, "autoincrement", strlen("autoincrement"), 1, &number_value);