From 9bad6d2fb8117e24f2c1ce06cac8c1f8598fc92f Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Mar 2018 23:22:52 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 8e1e43810..32cdd3616 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -421,7 +421,9 @@ cJSON *LP_listunspent(char *symbol,char *coinaddr,bits256 reftxid,bits256 reftxi { retjson = cJSON_Parse(retstr); free(retstr); - return(retjson); + if ( cJSON_GetArraySize(retjson) > 0 ) + return(retjson); + else free_json(retjson); } } printf("%s %s usecache.%d iswatched.%d\n",coin->symbol,coinaddr,usecache,LP_address_iswatchonly(symbol,coinaddr));