Made sure memory was freed after calling memcached_get.
authorPadraig O'Sullivan <osullivan.padraig@gmail.com>
Tue, 20 Oct 2009 17:38:53 +0000 (13:38 -0400)
committerPadraig O'Sullivan <osullivan.padraig@gmail.com>
Tue, 20 Oct 2009 17:38:53 +0000 (13:38 -0400)
libmemcached/memcached.hpp

index 46573f4959b2aab0a874da0eae407965fb2360a3..45dba9d321426f9ae5a27c7bbd1049be2f97e60c 100644 (file)
@@ -265,6 +265,7 @@ public:
     {
       ret_val.reserve(value_length);
       ret_val.assign(value, value + value_length);
+      free(value);
       return true;
     }
     return false;