diff --git a/crypto777/cJSON.c b/crypto777/cJSON.c index 3c8c376db..4c0777656 100755 --- a/crypto777/cJSON.c +++ b/crypto777/cJSON.c @@ -829,7 +829,7 @@ char *jstr(cJSON *json,char *field) { if ( json == 0 ) return(0); if ( field == char *jstri(cJSON *json,int32_t i) { return(cJSON_str(cJSON_GetArrayItem(json,i))); } char *jprint(cJSON *json,int32_t freeflag) { - char *str,*retstr; + char *str; /*static portable_mutex_t mutex; static int32_t initflag; if ( initflag == 0 ) { @@ -843,11 +843,8 @@ char *jprint(cJSON *json,int32_t freeflag) str = cJSON_Print(json), _stripwhite(str,' '); if ( freeflag != 0 ) free_json(json); - retstr = LP_alloc(strlen(str) + 1); - strcpy(retstr,str); - cJSON_free(str); //portable_mutex_unlock(&mutex); - return(retstr); + return(str); } bits256 get_API_bits256(cJSON *obj) diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index 2fb69cf65..a87481f15 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -35,17 +35,6 @@ void PNACL_message(char *arg,...) #include "../../crypto777/OS_portable.h" #endif // !_WIN_32 -/*#define malloc(n) LP_alloc(n) -#define realloc(ptr,n) LP_realloc(ptr,n) -#define calloc(a,b) LP_alloc((uint64_t)(a) * (b)) -#define free(ptr) LP_free(ptr) -#define clonestr(str) LP_clonestr(str) - -void *LP_realloc(void *ptr,uint64_t len); -void *LP_alloc(uint64_t len); -void LP_free(void *ptr); -char *LP_clonestr(char *str);*/ - #define MAX(a,b) ((a) > (b) ? (a) : (b)) char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *remoteaddr,uint16_t port); #include "stats.c"