projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a handle leak.
[reactos.git]
/
reactos
/
lib
/
kernel32
/
file
/
volume.c
diff --git
a/reactos/lib/kernel32/file/volume.c
b/reactos/lib/kernel32/file/volume.c
index
905202f
..
a7e07ae
100644
(file)
--- a/
reactos/lib/kernel32/file/volume.c
+++ b/
reactos/lib/kernel32/file/volume.c
@@
-946,6
+946,7
@@
GetVolumeNameForVolumeMountPointW(
else if (!NT_SUCCESS(Status))
{
RtlFreeHeap(GetProcessHeap(), 0, MountPoint);
+ NtClose(FileHandle);
SetLastErrorByStatus(Status);
return FALSE;
}