mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
don't leak resources on failure
svn path=/trunk/; revision=13220
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user