Do always dereference the section object if it was created (in PspCreateProcess).

svn path=/trunk/; revision=18909
This commit is contained in:
Hartmut Birr 2005-10-31 08:02:49 +00:00
parent 36704a0989
commit dad4f98487

View file

@ -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);