From f153903b3277697ce1a412401c03ae34b72582af Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 5 Nov 2017 21:23:20 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index f1a02583c..6a2903ea9 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -897,9 +897,9 @@ int32_t LP_recvfunc(struct electrum_info *ep,char *str,int32_t len) stritem = (struct stritem *)item; if ( item->type == idnum ) { - //printf("matched idnum.%d result.%p\n",idnum,resultjson); DL_DELETE(ep->pendingQ.list,item); *((cJSON **)stritem->retptrp) = (resultjson != 0 ? jduplicate(resultjson) : jduplicate(strjson)); + printf("matched idnum.%d result.(%s)\n",idnum,jprint(*((cJSON **)stritem->retptrp),0)); resultjson = strjson = 0; free(item); break; @@ -916,6 +916,7 @@ int32_t LP_recvfunc(struct electrum_info *ep,char *str,int32_t len) *((cJSON **)stritem->retptrp) = errjson; } free(item); + item = 0; } } }