mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00:00
[LOGOFF]
* Plug some leaks. CIDs 716284 and 716285. CORE-7975 svn path=/trunk/; revision=65133
This commit is contained in:
parent
a7c09060d2
commit
b1626fe71e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue