From 2363acf1f7c32e2ee47f27bd29e8f0c3c0e7d68f Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 16 Apr 2016 00:58:13 +0800 Subject: [PATCH] Fix a typo --- src/json.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/json.c b/src/json.c index 80db8f7a..01b3ed9c 100644 --- a/src/json.c +++ b/src/json.c @@ -28,7 +28,6 @@ */ #include "json.h" -#include "mm-wrapper.h" #ifdef _MSC_VER #ifndef _CRT_SECURE_NO_WARNINGS @@ -91,12 +90,12 @@ typedef struct { static void *default_alloc(size_t size, int zero, void *user_data) { - return zero ? calloc(1, size) : SS_SAFEMALLOC(size); + return zero ? calloc(1, size) : ss_malloc(size); } static void default_free(void *ptr, void *user_data) { - SS_SAFEFREE(ptr); + ss_free(ptr); } static void *json_alloc(json_state *state, unsigned long size, int zero)