mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 20:30:45 -06:00
fix minor memory leak, the numeric_to-string returnes alloced memory
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10155 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
1 parent
1a66b7b8d4
commit
ae6b1c475e
1 file changed
+2
-2
@@ -495,7 +495,7 @@ numeric_to_string (gpointer object, QofParam *getter)
|
||||
gnc_numeric num;
|
||||
num = ((query_numeric_getter)getter->param_getfcn)(object, getter);
|
||||
|
||||
return g_strdup (gnc_numeric_to_string (num));
|
||||
return gnc_numeric_to_string (num);
|
||||
}
|
||||
|
||||
static char *
|
||||
@@ -504,7 +504,7 @@ debcred_to_string (gpointer object, QofParam *getter)
|
||||
gnc_numeric num;
|
||||
num = ((query_numeric_getter)getter->param_getfcn)(object, getter);
|
||||
|
||||
return g_strdup (gnc_numeric_to_string (num));
|
||||
return gnc_numeric_to_string (num);
|
||||
}
|
||||
|
||||
/* QOF_TYPE_GUID =================================================== */
|
||||
|
||||
Reference in new issue
Block a user