From fa5a2a0b6fc6f16168113941881f602bfc82ee53 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 16 Nov 2017 01:17:03 +0200 Subject: [PATCH] Test --- crypto777/cJSON.c | 2 +- iguana/exchanges/LP_nativeDEX.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto777/cJSON.c b/crypto777/cJSON.c index d6c43f2fa..3c8c376db 100755 --- a/crypto777/cJSON.c +++ b/crypto777/cJSON.c @@ -843,7 +843,7 @@ char *jprint(cJSON *json,int32_t freeflag) str = cJSON_Print(json), _stripwhite(str,' '); if ( freeflag != 0 ) free_json(json); - retstr = malloc(strlen(str) + 1); + retstr = LP_alloc(strlen(str) + 1); strcpy(retstr,str); cJSON_free(str); //portable_mutex_unlock(&mutex); diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index a543f8c27..1f71f2c01 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -1188,10 +1188,10 @@ void LP_fromjs_iter() #endif -/*#undef calloc +#undef calloc #undef free #undef realloc -#undef clonestr*/ +#undef clonestr struct LP_memory_list {