r22072 - gnucash/trunk/src/gnome-utils - Fix minor memory leak: Return value of gnc_uri_get_components must get free'd.
Christian Stimming
cstim at code.gnucash.org
Thu Mar 8 17:48:10 EST 2012
Author: cstim
Date: 2012-03-08 17:48:09 -0500 (Thu, 08 Mar 2012)
New Revision: 22072
Trac: http://svn.gnucash.org/trac/changeset/22072
Modified:
gnucash/trunk/src/gnome-utils/gnc-file.c
Log:
Fix minor memory leak: Return value of gnc_uri_get_components must get free'd.
Modified: gnucash/trunk/src/gnome-utils/gnc-file.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-file.c 2012-03-08 22:47:59 UTC (rev 22071)
+++ gnucash/trunk/src/gnome-utils/gnc-file.c 2012-03-08 22:48:09 UTC (rev 22072)
@@ -932,6 +932,12 @@
}
}
+ g_free (protocol);
+ g_free (hostname);
+ g_free (username);
+ g_free (password);
+ g_free (path);
+
gnc_unset_busy_cursor (NULL);
/* going down -- abandon ship */
More information about the gnucash-changes
mailing list