projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
combined
(merge:
d20cee8
dabff6f
)
Update from Padraig, one additional valgrind warning I found cleaned up
author
Brian Aker
<brian@gaz>
Wed, 21 Oct 2009 00:01:00 +0000
(17:01 -0700)
committer
Brian Aker
<brian@gaz>
Wed, 21 Oct 2009 00:01:00 +0000
(17:01 -0700)
1
2
libmemcached/memcached.hpp
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
libmemcached/memcached.hpp
index 46573f4959b2aab0a874da0eae407965fb2360a3,92cd9a68826aa09a04e5a74363c09bb6dfc7f590..d7086b4ce301ea11a876fdcb3a20f8b0831a009a
---
1
/
libmemcached/memcached.hpp
---
2
/
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;
}