diff --git a/cpu-miner.c b/cpu-miner.c index ef2fc7672..b9ed6aa0b 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -615,7 +615,8 @@ static bool gbt_work_decode(const json_t *val, struct work *work) txs_end += tx_hex_len; } } - free(tx); tx = NULL; + free(tx); + tx = NULL; n = 1 + tx_count; while (n > 1) { if (n % 2) {