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:
Sebastian Lackner 2016-08-11 07:21:12 +02:00 committed by Alexandre Julliard
parent 989bb04495
commit c8187d62f8
1 changed files with 1 additions and 0 deletions

View File

@ -954,6 +954,7 @@ void process_terminate(struct process_entry *process)
service->status.dwProcessId = 0;
service->status.dwCurrentState = SERVICE_STOPPED;
service->process = NULL;
release_process(process);
}
scmdatabase_unlock(db);
}