More memory leaks

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20041 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2011-01-09 18:00:32 +00:00
parent 04078234c0
commit 3bd95ca483

View File

@ -97,10 +97,13 @@ void gnc_register_kvp_option_generator(QofIdType id_type, SCM generator);
{
SCM key_scm = SCM_CAR (path_scm);
char *key;
gchar* gkey;
if (!scm_is_string (key_scm))
break;
key = g_strdup (scm_to_locale_string (key_scm));
path = g_list_prepend (path, key);
key = scm_to_locale_string (key_scm);
gkey = g_strdup (key);
gnc_free_scm_locale_string(key);
path = g_list_prepend (path, gkey);
path_scm = SCM_CDR (path_scm);
}
$1 = g_list_reverse (path);