projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31067aa
)
don't leak resources on failure
author
Thomas Bluemel
<thomas@reactsoft.com>
Sat, 22 Jan 2005 20:59:49 +0000
(20:59 +0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Sat, 22 Jan 2005 20:59:49 +0000
(20:59 +0000)
svn path=/trunk/; revision=13220
reactos/ntoskrnl/rtl/capture.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/rtl/capture.c
b/reactos/ntoskrnl/rtl/capture.c
index
8f18a79
..
a634fa3
100644
(file)
--- a/
reactos/ntoskrnl/rtl/capture.c
+++ b/
reactos/ntoskrnl/rtl/capture.c
@@
-115,6
+115,13
@@
RtlCaptureUnicodeString(OUT PUNICODE_STRING Dest,
Status = _SEH_GetExceptionCode();
}
_SEH_END;
+
+ if(!NT_SUCCESS(Status))
+ {
+ ExFreePool(Dest->Buffer);
+ Dest->Buffer = NULL;
+ Dest->Length = Dest->MaximumLength = 0;
+ }
}
else
{