Free a leaked return value of g_win32_error_message.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15996 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-04-25 18:22:05 +00:00
parent a654961e1b
commit 39a9165290

View File

@ -287,6 +287,7 @@ void gnc_gpid_kill(GPid pid)
if (!TerminateProcess((HANDLE) pid, 0)) {
gchar *msg = g_win32_error_message(GetLastError());
g_warning("Could not kill child process: %s", msg ? msg : "(null)");
g_free(msg);
}
#else /* !G_OS_WIN32 */
if (kill(pid, SIGKILL)) {