From: Padraig O'Sullivan Date: Tue, 20 Oct 2009 17:41:00 +0000 (-0400) Subject: Freed memory after a call to memcached_fetch X-Git-Tag: 0.35~9^2~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=91270b6bf98a973d1ac428949de029f414137b26;p=m6w6%2Flibmemcached Freed memory after a call to memcached_fetch --- diff --git a/libmemcached/memcached.hpp b/libmemcached/memcached.hpp index 2a533e01..baf681ad 100644 --- a/libmemcached/memcached.hpp +++ b/libmemcached/memcached.hpp @@ -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; }