mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
Do always dereference the section object if it was created (in PspCreateProcess).
svn path=/trunk/; revision=18909
This commit is contained in:
parent
36704a0989
commit
dad4f98487
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue