projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36704a0
)
Do always dereference the section object if it was created (in PspCreateProcess).
author
Hartmut Birr
<osexpert@googlemail.com>
Mon, 31 Oct 2005 08:02:49 +0000
(08:02 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Mon, 31 Oct 2005 08:02:49 +0000
(08:02 +0000)
svn path=/trunk/; revision=18909
reactos/ntoskrnl/ps/process.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/ps/process.c
b/reactos/ntoskrnl/ps/process.c
index
8240bf0
..
df3993d
100644
(file)
--- a/
reactos/ntoskrnl/ps/process.c
+++ b/
reactos/ntoskrnl/ps/process.c
@@
-436,9
+436,9
@@
PspCreateProcess(OUT PHANDLE ProcessHandle,
Cleanup:
if(pParentProcess != NULL) ObDereferenceObject(pParentProcess);
+ if(SectionObject != NULL) ObDereferenceObject(SectionObject);
if (!ProcessCreated)
{
- if(SectionObject != NULL) ObDereferenceObject(SectionObject);
if(pExceptionPort != NULL) ObDereferenceObject(pExceptionPort);
if(pDebugPort != NULL) ObDereferenceObject(pDebugPort);
if(Process != NULL) ObDereferenceObject(Process);