From 43e12a7ec9821b646f6ea90c997d0cd6795f3d1b Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 22 May 2016 00:01:46 -0500 Subject: [PATCH] test --- iguana/swaps/iguana_BTCswap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/iguana/swaps/iguana_BTCswap.c b/iguana/swaps/iguana_BTCswap.c index 6a2777768..bd945d190 100755 --- a/iguana/swaps/iguana_BTCswap.c +++ b/iguana/swaps/iguana_BTCswap.c @@ -1077,12 +1077,9 @@ void instantdex_statemachine_iter(struct supernet_info *myinfo,struct exchange_i while ( (ptr= queue_dequeue(&swap->eventsQ,0)) != 0 ) { printf("dequeued (%s)\n",ptr->cmd); - if ( (str= instantdex_statemachine(BTC_states,BTC_numstates,myinfo,exchange,swap,ptr->cmd,ptr->argjson,ptr->newjson,ptr->serdata,ptr->serdatalen)) != 0 ) + if ( (str= instantdex_statemachine(BTC_states,BTC_numstates,myinfo,exchange,swap,ptr->cmd,ptr->argjson,jduplicate(ptr->newjson),ptr->serdata,ptr->serdatalen)) != 0 ) free(str); instantdex_eventfree(ptr); - if ( ptr->argjson != 0 ) - free_json(ptr->argjson); - free(ptr); flag++; } if ( flag == 0 && swap->pollevent != 0 )