Browse Source

Test

etomic
jl777 7 years ago
parent
commit
fa5a2a0b6f
  1. 2
      crypto777/cJSON.c
  2. 4
      iguana/exchanges/LP_nativeDEX.c

2
crypto777/cJSON.c

@ -843,7 +843,7 @@ char *jprint(cJSON *json,int32_t freeflag)
str = cJSON_Print(json), _stripwhite(str,' '); str = cJSON_Print(json), _stripwhite(str,' ');
if ( freeflag != 0 ) if ( freeflag != 0 )
free_json(json); free_json(json);
retstr = malloc(strlen(str) + 1); retstr = LP_alloc(strlen(str) + 1);
strcpy(retstr,str); strcpy(retstr,str);
cJSON_free(str); cJSON_free(str);
//portable_mutex_unlock(&mutex); //portable_mutex_unlock(&mutex);

4
iguana/exchanges/LP_nativeDEX.c

@ -1188,10 +1188,10 @@ void LP_fromjs_iter()
#endif #endif
/*#undef calloc #undef calloc
#undef free #undef free
#undef realloc #undef realloc
#undef clonestr*/ #undef clonestr
struct LP_memory_list struct LP_memory_list
{ {

Loading…
Cancel
Save