services: Fix memory leak of some data in the service record.

This commit is contained in:
Rob Shearman 2008-04-01 12:48:28 +01:00 committed by Alexandre Julliard
parent 8aeb2858e4
commit 0b7a37acdc
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ void free_service_entry(struct service_entry *entry)
HeapFree(GetProcessHeap(), 0, entry->config.lpServiceStartName);
HeapFree(GetProcessHeap(), 0, entry->config.lpDisplayName);
HeapFree(GetProcessHeap(), 0, entry->description);
HeapFree(GetProcessHeap(), 0, entry->dependOnServices);
HeapFree(GetProcessHeap(), 0, entry->dependOnGroups);
CloseHandle(entry->control_mutex);
CloseHandle(entry->control_pipe);
CloseHandle(entry->status_changed_event);