mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Improve gnc_numeric_boxed_copy_func based on discussion in PR#145
In essence - guard against nullptr dereferencing - free returned values
This commit is contained in:
@@ -249,6 +249,8 @@ test_gnc_split_set_get_property ()
|
||||
* few leaks to save trouble; it will all work fine once the
|
||||
* refactoring is taken care of.
|
||||
*/
|
||||
g_free (r_value);
|
||||
g_free (r_amount);
|
||||
g_object_unref (txn);
|
||||
g_object_unref (acc);
|
||||
g_object_unref (lot);
|
||||
|
||||
Reference in New Issue
Block a user