mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
Fix a handle leak.
svn path=/trunk/; revision=20221
This commit is contained in:
parent
c75e5ec7d3
commit
e25fc6f865
|
@ -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…
Reference in a new issue