Update from Padraig, one additional valgrind warning I found cleaned up
authorBrian Aker <brian@gaz>
Wed, 21 Oct 2009 00:01:00 +0000 (17:01 -0700)
committerBrian Aker <brian@gaz>
Wed, 21 Oct 2009 00:01:00 +0000 (17:01 -0700)
1  2 
libmemcached/memcached.hpp

index 46573f4959b2aab0a874da0eae407965fb2360a3,92cd9a68826aa09a04e5a74363c09bb6dfc7f590..d7086b4ce301ea11a876fdcb3a20f8b0831a009a
@@@ -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;
    }