From: Padraig O'Sullivan Date: Tue, 20 Oct 2009 17:38:53 +0000 (-0400) Subject: Made sure memory was freed after calling memcached_get. X-Git-Tag: 0.35~9^2~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5c6d7ae6344412f19fec578a328904c7c1700880;p=m6w6%2Flibmemcached Made sure memory was freed after calling memcached_get. --- diff --git a/libmemcached/memcached.hpp b/libmemcached/memcached.hpp index 46573f49..45dba9d3 100644 --- a/libmemcached/memcached.hpp +++ b/libmemcached/memcached.hpp @@ -265,6 +265,7 @@ public: { ret_val.reserve(value_length); ret_val.assign(value, value + value_length); + free(value); return true; } return false;