services: Fix leak of process object in process_terminate.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
989bb04495
commit
c8187d62f8
|
@ -954,6 +954,7 @@ void process_terminate(struct process_entry *process)
|
||||||
service->status.dwProcessId = 0;
|
service->status.dwProcessId = 0;
|
||||||
service->status.dwCurrentState = SERVICE_STOPPED;
|
service->status.dwCurrentState = SERVICE_STOPPED;
|
||||||
service->process = NULL;
|
service->process = NULL;
|
||||||
|
release_process(process);
|
||||||
}
|
}
|
||||||
scmdatabase_unlock(db);
|
scmdatabase_unlock(db);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue