projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a09e7
)
[NTOS] Fix double free on allocation failure in ObCreateObject
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Wed, 31 Aug 2022 13:08:41 +0000
(15:08 +0200)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Thu, 1 Dec 2022 18:17:40 +0000
(20:17 +0200)
ntoskrnl/ob/oblife.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/ob/oblife.c
b/ntoskrnl/ob/oblife.c
index
f46cb40
..
9704ad8
100644
(file)
--- a/
ntoskrnl/ob/oblife.c
+++ b/
ntoskrnl/ob/oblife.c
@@
-1035,6
+1035,7
@@
ObCreateObject(IN KPROCESSOR_MODE ProbeMode OPTIONAL,
/* Release the Capture Info, we don't need it */
ObpFreeObjectCreateInformation(ObjectCreateInfo);
if (ObjectName.Buffer) ObpFreeObjectNameBuffer(&ObjectName);
+ return Status;
}
/* We failed, so release the Buffer */