From 41d03240ce12864c70753f52d7143b6776c9624a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 11 Nov 2017 11:07:06 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_cache.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_cache.c b/iguana/exchanges/LP_cache.c index 999f2c0cd..3da97708d 100644 --- a/iguana/exchanges/LP_cache.c +++ b/iguana/exchanges/LP_cache.c @@ -43,8 +43,9 @@ cJSON *LP_create_transaction(struct iguana_info *coin,bits256 txid,uint8_t *seri vins = jarray(&numvins,txobj,"vin"); vouts = jarray(&numvouts,txobj,"vout"); tx = LP_transactionadd(coin,txid,height,numvouts,numvins); - tx->serialized = serialized; - tx->len = len; + tx->serialized = 0; + free(serialized); + tx->len = 0; tx->SPV = tx->height = height; //printf("tx.%p vins.(%s) vouts.(%s)\n",tx,jprint(vins,0),jprint(vouts,0)); for (i=0; i