mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 00:46:10 +08:00
Do always dereference the section object if it was created (in PspCreateProcess).
svn path=/trunk/; revision=18909
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user