diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-18 18:14:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-18 18:14:33 +0100 |
commit | ee6b2d5286df473cf51575b025117f273cfa14be (patch) | |
tree | a9105a3ab21dd20b19ab15eed0f77a8cca21b03c /src/auditor/taler-auditor.c | |
parent | b3ff66d05775e94fef9a36eab4ebc67186f825dd (diff) | |
download | exchange-ee6b2d5286df473cf51575b025117f273cfa14be.tar.xz |
fix leak
Diffstat (limited to 'src/auditor/taler-auditor.c')
-rw-r--r-- | src/auditor/taler-auditor.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c index 0a947727c..cc526ec85 100644 --- a/src/auditor/taler-auditor.c +++ b/src/auditor/taler-auditor.c @@ -2835,6 +2835,7 @@ check_wire_out_cb &wcc.h_wire)) { GNUNET_break (0); + GNUNET_free (method); return GNUNET_SYSERR; } qs = edb->lookup_wire_transfer (edb->cls, @@ -2881,16 +2882,16 @@ check_wire_out_cb &wcc.total_deposits, wire_fee)) { - report_amount_arithmetic_inconsistency - ("wire out (fee structure)", - rowid, - &wcc.total_deposits, - wire_fee, - -1); + report_amount_arithmetic_inconsistency ("wire out (fee structure)", + rowid, + &wcc.total_deposits, + wire_fee, + -1); /* If fee arithmetic fails, we just assume the fee is zero */ final_amount = wcc.total_deposits; } } + GNUNET_free (method); /* Round down to amount supported by wire method */ GNUNET_break (TALER_amount_round_down (&final_amount, |