mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-02 13:39:43 -06:00
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:
parent
a654961e1b
commit
39a9165290
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user