From 18acacfe2064ade28a4febbfeb85fd6e14020ac1 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Sat, 10 Feb 2018 16:53:09 +0000 Subject: [PATCH] base_process_service: properly clean up in destructor. --- src/includes/proc-service.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/includes/proc-service.h b/src/includes/proc-service.h index 606c5b1..2a46f02 100644 --- a/src/includes/proc-service.h +++ b/src/includes/proc-service.h @@ -137,6 +137,10 @@ class base_process_service : public service_record ~base_process_service() noexcept { + if (reserved_child_watch) { + child_listener.unreserve(event_loop); + } + restart_timer.deregister(event_loop); } // Set the stop command and arguments (may throw std::bad_alloc) -- 2.25.1