mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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:
|
Cleanup:
|
||||||
if(pParentProcess != NULL) ObDereferenceObject(pParentProcess);
|
if(pParentProcess != NULL) ObDereferenceObject(pParentProcess);
|
||||||
|
if(SectionObject != NULL) ObDereferenceObject(SectionObject);
|
||||||
if (!ProcessCreated)
|
if (!ProcessCreated)
|
||||||
{
|
{
|
||||||
if(SectionObject != NULL) ObDereferenceObject(SectionObject);
|
|
||||||
if(pExceptionPort != NULL) ObDereferenceObject(pExceptionPort);
|
if(pExceptionPort != NULL) ObDereferenceObject(pExceptionPort);
|
||||||
if(pDebugPort != NULL) ObDereferenceObject(pDebugPort);
|
if(pDebugPort != NULL) ObDereferenceObject(pDebugPort);
|
||||||
if(Process != NULL) ObDereferenceObject(Process);
|
if(Process != NULL) ObDereferenceObject(Process);
|
||||||
|
|
Loading…
Reference in a new issue