Freed memory after a call to memcached_fetch
authorPadraig O'Sullivan <osullivan.padraig@gmail.com>
Tue, 20 Oct 2009 17:41:00 +0000 (13:41 -0400)
committerPadraig O'Sullivan <osullivan.padraig@gmail.com>
Tue, 20 Oct 2009 17:41:00 +0000 (13:41 -0400)
libmemcached/memcached.hpp

index 2a533e018053d40cb83ea2fe9d8df1135d733600..baf681adaa1cc830116d4505523f2c7574c5e417 100644 (file)
@@ -236,6 +236,7 @@ public:
       ret_val.reserve(value_length);
       ret_val.assign(value, value + value_length);
       key.assign(ret_key);
+      free(value);
     }
     return rc;
   }