X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwindow.c;h=fc51e57fb2b5fbbe95fbdc37d76831dd7cee2e82;hb=21101c7397e460933635a7bfed813864fc4f88fe;hp=2677145fef517b0f68f50333600b3e41a5315195;hpb=d8fdb494515c17b4a529f99a81d20214687bf6a3;p=PuTTY.git diff --git a/windows/window.c b/windows/window.c index 2677145f..fc51e57f 100644 --- a/windows/window.c +++ b/windows/window.c @@ -398,10 +398,12 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) #ifndef UNPROTECT char *error = NULL; if (! setprocessacl(error)) { - logevent(NULL, "Could not restrict process ACL: %s", - error); + char *message = dupprintf("Could not restrict process ACL: %s", + error); + logevent(NULL, message); + sfree(message); + sfree(error); } - sfree(error); #endif } /*