Correct memory leak found with valgrind

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20743 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
J. Alex Aycinena 2011-06-09 21:43:36 +00:00
parent 7d9110937c
commit 8d57666936

View File

@ -173,6 +173,7 @@ gnc_extension_path (SCM extension, char **fullpath)
{
char* s;
scm_dynwind_begin (0);
s = scm_to_locale_string(item);
if (i == 1)
@ -184,7 +185,8 @@ gnc_extension_path (SCM extension, char **fullpath)
{
strings[i] = g_strdup(gettext(s));
}
free(s);
scm_dynwind_free (s);
scm_dynwind_end ();
}
else
{