mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[dialog-sx-editor] plug GHashTable leaks when returning early
This commit is contained in:
parent
6ba5b57e41
commit
a9a67c717e
@ -862,7 +862,11 @@ gnc_sxed_check_consistent (GncSxEditorDialog *sxed)
|
||||
xaccAccountForEachTransaction (tmpl_acct, check_transaction_splits, &sd);
|
||||
|
||||
if (sd.err)
|
||||
{
|
||||
g_hash_table_destroy (vars);
|
||||
g_hash_table_destroy (txns);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_hash_table_foreach (txns, check_credit_debit_balance, &unbalanceable);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user