summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/listpack_malloc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/listpack_malloc.h b/src/listpack_malloc.h
index a3a077fcd..401ab6f74 100644
--- a/src/listpack_malloc.h
+++ b/src/listpack_malloc.h
@@ -38,7 +38,8 @@
#ifndef LISTPACK_ALLOC_H
#define LISTPACK_ALLOC_H
-#define lp_malloc malloc
-#define lp_realloc realloc
-#define lp_free free
+#include "zmalloc.h"
+#define lp_malloc zmalloc
+#define lp_realloc zrealloc
+#define lp_free zfree
#endif