From: Padraig O'Sullivan Date: Tue, 20 Oct 2009 17:39:42 +0000 (-0400) Subject: Made sure memory was freed after call to memcached_get_by_key. X-Git-Tag: 0.35~9^2~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b4d3715b7870f1d6d4c32e920b473fc8c9b801db;p=awesomized%2Flibmemcached Made sure memory was freed after call to memcached_get_by_key. --- diff --git a/libmemcached/memcached.hpp b/libmemcached/memcached.hpp index 45dba9d3..2a533e01 100644 --- a/libmemcached/memcached.hpp +++ b/libmemcached/memcached.hpp @@ -303,6 +303,7 @@ public: { ret_val.reserve(value_length); ret_val.assign(value, value + value_length); + free(value); return true; } return false;