diff --git a/programs/services/services.c b/programs/services/services.c index 8e49906fb7b..56c3e4558c8 100644 --- a/programs/services/services.c +++ b/programs/services/services.c @@ -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); }