Skip to content

Commit

Permalink
[dialog-sx-editor] plug GHashTable leaks when returning early
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Jan 6, 2023
1 parent 6ba5b57 commit a9a67c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gnucash/gnome/dialog-sx-editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a9a67c7

Please sign in to comment.