From: Brian Aker Date: Wed, 21 Oct 2009 00:01:00 +0000 (-0700) Subject: Update from Padraig, one additional valgrind warning I found cleaned up X-Git-Tag: 0.35~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f6c04131cc9952372e3f63de2db4edc9f8181fb2;p=awesomized%2Flibmemcached Update from Padraig, one additional valgrind warning I found cleaned up --- f6c04131cc9952372e3f63de2db4edc9f8181fb2 diff --cc libmemcached/memcached.hpp index 46573f49,92cd9a68..d7086b4c --- a/libmemcached/memcached.hpp +++ b/libmemcached/memcached.hpp @@@ -236,7 -236,8 +236,13 @@@ public ret_val.reserve(value_length); ret_val.assign(value, value + value_length); key.assign(ret_key); + free(value); } ++ else if (value) ++ { ++ free(value); ++ } ++ return rc; }