Fix memory leak in qof_session_save() - "msg" is never freed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17228 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2008-06-13 00:21:35 +00:00
parent 23c6465903
commit 3370604c8d

View File

@ -1287,6 +1287,7 @@ qof_session_save (QofSession *session,
{
PWARN("%s", msg);
g_free(msg);
msg = NULL;
}
}
/* Tell the books about the backend that they'll be using. */
@ -1347,6 +1348,7 @@ qof_session_save (QofSession *session,
}
LEAVE("error -- No backend!");
leave:
if(msg != NULL) g_free(msg);
g_atomic_int_inc(&session->lock);
return;
}