Fix lack of free() in bug (quiet valgrind)
authorBrian Aker <brian@tangent.org>
Mon, 21 Jan 2008 21:09:56 +0000 (13:09 -0800)
committerBrian Aker <brian@tangent.org>
Mon, 21 Jan 2008 21:09:56 +0000 (13:09 -0800)
tests/function.c

index 320eb1da565e6df559d7f6c563befa388da09c67..514fe3c2fb8673f3977fc49053a353801e48b605 100644 (file)
@@ -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);