mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +00:00
Fix a handle leak.
svn path=/trunk/; revision=20221
This commit is contained in:
parent
c75e5ec7d3
commit
e25fc6f865
1 changed files with 1 additions and 0 deletions
|
@ -946,6 +946,7 @@ GetVolumeNameForVolumeMountPointW(
|
||||||
else if (!NT_SUCCESS(Status))
|
else if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
RtlFreeHeap(GetProcessHeap(), 0, MountPoint);
|
RtlFreeHeap(GetProcessHeap(), 0, MountPoint);
|
||||||
|
NtClose(FileHandle);
|
||||||
SetLastErrorByStatus(Status);
|
SetLastErrorByStatus(Status);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue