Author: akhaldi
Date: Fri Oct 31 09:22:59 2014
New Revision: 65133
URL:
http://svn.reactos.org/svn/reactos?rev=65133&view=rev
Log:
[LOGOFF]
* Plug some leaks. CIDs 716284 and 716285.
CORE-7975
Modified:
trunk/reactos/base/applications/logoff/logoff.c
Modified: trunk/reactos/base/applications/logoff/logoff.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/logoff/l…
==============================================================================
--- trunk/reactos/base/applications/logoff/logoff.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/logoff/logoff.c [iso-8859-1] Fri Oct 31 09:22:59 2014
@@ -30,6 +30,7 @@
if (AllocAndLoadString(&lpUsage, GetModuleHandle(NULL), IDS_USAGE)) {
_putts(lpUsage);
+ LocalFree(lpUsage);
}
}
@@ -90,6 +91,7 @@
//Invalid parameter detected
if (AllocAndLoadString(&lpIllegalMsg, GetModuleHandle(NULL), IDS_ILLEGAL_PARAM))
_putts(lpIllegalMsg);
+ LocalFree(lpIllegalMsg);
return FALSE;
}
}