mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-pricedb.c] plug GList leak
This commit is contained in:
parent
2906b48468
commit
b3101c9385
@ -2534,7 +2534,11 @@ indirect_price_conversion (GNCPriceDB *db, const gnc_commodity *from,
|
||||
to_prices = gnc_pricedb_lookup_nearest_in_time_any_currency_t64 (db, to, t);
|
||||
}
|
||||
if (!from_prices || !to_prices)
|
||||
{
|
||||
gnc_price_list_destroy (from_prices);
|
||||
gnc_price_list_destroy (to_prices);
|
||||
return zero;
|
||||
}
|
||||
tuple = extract_common_prices (from_prices, to_prices, from, to);
|
||||
gnc_price_list_destroy (from_prices);
|
||||
gnc_price_list_destroy (to_prices);
|
||||
|
Loading…
Reference in New Issue
Block a user