mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- Fix handle / memory leak in failure branch, spotted by Dmitry Chapyshev.
svn path=/trunk/; revision=40937
This commit is contained in:
@@ -239,7 +239,11 @@ LdrpQueryAppPaths(IN PCWSTR ImageName)
|
||||
&ResultSize);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
NtClose(KeyHandle);
|
||||
RtlFreeHeap(RtlGetProcessHeap(), 0, KeyInfo);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
RtlCopyMemory(SearchPathBuffer,
|
||||
&KeyInfo->Data,
|
||||
|
||||
Reference in New Issue
Block a user