From 91270b6bf98a973d1ac428949de029f414137b26 Mon Sep 17 00:00:00 2001 From: Padraig O'Sullivan Date: Tue, 20 Oct 2009 13:41:00 -0400 Subject: [PATCH] Freed memory after a call to memcached_fetch --- libmemcached/memcached.hpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2