projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Update for valgrind failure.
[m6w6/libmemcached]
/
libhashkit
/
hashkit.cc
diff --git
a/libhashkit/hashkit.cc
b/libhashkit/hashkit.cc
index 7f3514d1062de0c25c42927c39586e31e884411a..96e39515efe9dde16cdbce1bdf43a39209ceb1e0 100644
(file)
--- a/
libhashkit/hashkit.cc
+++ b/
libhashkit/hashkit.cc
@@
-23,7
+23,7
@@
static inline hashkit_st *_hashkit_create(hashkit_st *self)
{
if (not self)
{
- self=
new hashkit_st
;
+ self=
(hashkit_st*)calloc(1, sizeof(hashkit_st))
;
if (not self)
{
return NULL;
@@
-55,7
+55,7
@@
void hashkit_free(hashkit_st *self)
{
if (hashkit_is_allocated(self))
{
-
delete self
;
+
free(self)
;
}
}