Fix memory leaks in gncOwnerGetBalanceInCurrency

This commit is contained in:
Geert Janssens 2018-09-14 11:01:05 +02:00
parent 4e71629966
commit 62eb95c05c

View File

@ -1493,7 +1493,10 @@ gncOwnerGetBalanceInCurrency (const GncOwner *owner,
balance = gnc_numeric_add (balance, lot_balance,
gnc_commodity_get_fraction (owner_currency), GNC_HOW_RND_ROUND_HALF_UP);
}
g_list_free (lot_list);
}
g_list_free (acct_list);
g_list_free (acct_types);
pdb = gnc_pricedb_get_db (book);