Fix 1-byte memory leak on first run

This commit is contained in:
Geert Janssens 2018-09-14 10:01:38 +02:00
parent ee77f38f40
commit 33fae41aaa

View File

@ -610,7 +610,7 @@ static void
inner_main (void *closure, int argc, char **argv)
{
SCM main_mod;
char* fn;
char* fn = NULL;
scm_c_eval_string("(debug-set! stack 200000)");
@ -654,6 +654,7 @@ inner_main (void *closure, int argc, char **argv)
}
else if (gnc_prefs_get_bool(GNC_PREFS_GROUP_NEW_USER, GNC_PREF_FIRST_STARTUP))
{
g_free(fn); /* fn could be an empty string ("") */
gnc_destroy_splash_screen();
gnc_ui_new_user_dialog();
}