Author: cwittich
Date: Thu Sep 3 08:48:31 2015
New Revision: 68929
URL:
http://svn.reactos.org/svn/reactos?rev=68929&view=rev
Log:
[WINLOGON] fix resource leak in error case CID 1322159
Modified:
trunk/reactos/base/system/winlogon/notify.c
Modified: trunk/reactos/base/system/winlogon/notify.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/notif…
==============================================================================
--- trunk/reactos/base/system/winlogon/notify.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/winlogon/notify.c [iso-8859-1] Thu Sep 3 08:48:31 2015
@@ -121,7 +121,10 @@
HEAP_ZERO_MEMORY,
sizeof(NOTIFICATION_ITEM));
if (NotificationDll == NULL)
+ {
+ FreeLibrary(hInstance);
return;
+ }
NotificationDll->bEnabled = TRUE;
NotificationDll->dwMaxWait = 30; /* FIXME: ??? */