mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
7d9110937c
commit
8d57666936
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user