From 13eda963d4bcf70d027039013af14d0ee5da2c14 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Mon, 17 Sep 2018 18:32:12 +0100 Subject: [PATCH] dirload_service_set; correctly record service dir allocation. The service directory can be allocated statically or dynamically (in which case it is "owned" by the service set). Correctly track it for the single-directory constructor. --- src/includes/service.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/service.h b/src/includes/service.h index 7d95848..b59815c 100644 --- a/src/includes/service.h +++ b/src/includes/service.h @@ -1003,7 +1003,7 @@ class dirload_service_set : public service_set // or statically allocated. dirload_service_set(const char *service_dir_p, bool dyn_allocd = false) : service_set() { - service_dirs.emplace_back(service_dir_p, false); + service_dirs.emplace_back(service_dir_p, dyn_allocd); } // Append a directory to the list of service directories, so that it is searched last for -- 2.25.1