diff --git a/iguana/main.c b/iguana/main.c index f3ca7a965..d394cbf6b 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -313,10 +313,9 @@ char *SuperNET_processJSON(struct supernet_info *myinfo,cJSON *json,char *remote jadd64bits(retjson,"tag",tag); } retstr = jprint(retjson,1); + free(retjsonstr);//,strlen(retjsonstr)+1); //printf("retstr.(%s) retjsonstr.%p retjson.%p\n",retstr,retjsonstr,retjson); - } - else retstr = retjsonstr; - free(retjsonstr); + } else retstr = retjsonstr; } else retstr = retjsonstr; } free(jsonstr);