From: Davin McCall Date: Mon, 17 Sep 2018 17:32:12 +0000 (+0100) Subject: dirload_service_set; correctly record service dir allocation. X-Git-Tag: v0.4.0~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=13eda963d4bcf70d027039013af14d0ee5da2c14;p=oweals%2Fdinit.git 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. --- 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