[LOGOFF]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 31 Oct 2014 09:22:59 +0000 (09:22 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 31 Oct 2014 09:22:59 +0000 (09:22 +0000)
* Plug some leaks. CIDs 716284 and 716285.
CORE-7975

svn path=/trunk/; revision=65133

reactos/base/applications/logoff/logoff.c

index 4913c83..3d46314 100644 (file)
@@ -30,6 +30,7 @@ static void PrintUsage() {
 
        if (AllocAndLoadString(&lpUsage, GetModuleHandle(NULL), IDS_USAGE)) {
                _putts(lpUsage);
+               LocalFree(lpUsage);
        }
 
 }
@@ -90,6 +91,7 @@ BOOL ParseCommandLine(int argc, TCHAR *argv[])
                        //Invalid parameter detected
                        if (AllocAndLoadString(&lpIllegalMsg, GetModuleHandle(NULL), IDS_ILLEGAL_PARAM))
                        _putts(lpIllegalMsg);
+                       LocalFree(lpIllegalMsg);
                        return FALSE;
                }
        }