Bug 490274 - Memory leak in toolkit/xre/nsWindowsRestart.cpp; r=benjamin

This commit is contained in:
Hiroyuki Ikezoe 2009-05-14 16:17:51 +02:00
parent d47fd76ada
commit 4f3fae71b8

View File

@ -321,6 +321,8 @@ WinLaunchChild(const PRUnichar *exePath, int argc, PRUnichar **argv)
NULL
);
wprintf(L"Error restarting: %s\n", lpMsgBuf ? lpMsgBuf : L"(null)");
if (lpMsgBuf)
LocalFree(lpMsgBuf);
}
free(cl);