Merge working tree with build tree.
[m6w6/libmemcached] / libhashkit / hashkit.cc
index 7f3514d1062de0c25c42927c39586e31e884411a..96e39515efe9dde16cdbce1bdf43a39209ceb1e0 100644 (file)
@@ -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);
   }
 }