Browse Source

wallet: don't leak UTXO array on extracting outputs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
5a319c781c
  1. 1
      wallet/wallet.c

1
wallet/wallet.c

@ -755,6 +755,7 @@ int wallet_extract_owned_outputs(struct wallet *w, const struct bitcoin_tx *tx,
return -1; return -1;
} }
*total_satoshi += utxo->amount; *total_satoshi += utxo->amount;
tal_free(utxo);
num_utxos++; num_utxos++;
} }
return num_utxos; return num_utxos;

Loading…
Cancel
Save