* Plug some leaks. CIDs 716284 and 716285.
CORE-7975

svn path=/trunk/; revision=65133
This commit is contained in:
Amine Khaldi 2014-10-31 09:22:59 +00:00
parent a7c09060d2
commit b1626fe71e

View file

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