From be19b489e47884ab65ce4a69b594b0b9578fe62f Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 30 May 2021 22:47:53 +0800 Subject: [PATCH] [gncEntryLedger] free taxes, a list of GncAccountValue --- gnucash/register/ledger-core/gncEntryLedger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gnucash/register/ledger-core/gncEntryLedger.c b/gnucash/register/ledger-core/gncEntryLedger.c index ca4378847d..bff49b3692 100644 --- a/gnucash/register/ledger-core/gncEntryLedger.c +++ b/gnucash/register/ledger-core/gncEntryLedger.c @@ -788,6 +788,7 @@ gnc_entry_ledger_compute_value (GncEntryLedger *ledger, /* return the tax value */ taxes_unrounded = gncAccountValueTotal (taxes); + gncAccountValueDestroy (taxes); if (tax_value) *tax_value = gnc_numeric_convert (taxes_unrounded, denom, GNC_HOW_RND_ROUND_HALF_UP);