mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-amount-edit] g_free char* empty string.
1 byte is allocated if filtered_string is the empty string. free it.
This commit is contained in:
parent
57866eed88
commit
c442192bb4
@ -386,6 +386,7 @@ gnc_amount_edit_expr_is_valid (GNCAmountEdit *gae, gnc_numeric *amount,
|
||||
if (!filtered_string || *filtered_string == '\0')
|
||||
{
|
||||
*amount = gnc_numeric_zero ();
|
||||
g_free (filtered_string);
|
||||
if (empty_ok)
|
||||
return -1; /* indicate an empty field */
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user