r16075 - gnucash/trunk/src/gnome-utils - Fix memory leak: Returned strings from gconf need to be freed.
Christian Stimming
cstim at cvs.gnucash.org
Sat May 12 15:12:03 EDT 2007
Author: cstim
Date: 2007-05-12 15:12:02 -0400 (Sat, 12 May 2007)
New Revision: 16075
Trac: http://svn.gnucash.org/trac/changeset/16075
Modified:
gnucash/trunk/src/gnome-utils/gnc-plugin-file-history.c
Log:
Fix memory leak: Returned strings from gconf need to be freed.
Modified: gnucash/trunk/src/gnome-utils/gnc-plugin-file-history.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-plugin-file-history.c 2007-05-12 17:50:14 UTC (rev 16074)
+++ gnucash/trunk/src/gnome-utils/gnc-plugin-file-history.c 2007-05-12 19:12:02 UTC (rev 16075)
@@ -202,6 +202,7 @@
* Store the new zero entry.
*/
gnc_gconf_set_string(HISTORY_STRING_SECTION, to, newfile, NULL);
+ g_free(to);
}
More information about the gnucash-changes
mailing list