From: Josef 'Jeff' Sipek Date: Wed, 24 Aug 2016 07:56:44 +0000 (-0400) Subject: lib-master: don't leak config path X-Git-Tag: 2.2.26~313 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ba262b34fd873e1ecc692d0ada266ddf50622b4;p=thirdparty%2Fdovecot%2Fcore.git lib-master: don't leak config path The config path can already be non-NULL thanks to the default config path code or the CONFIG_PATH environmental variable. --- diff --git a/src/lib-master/master-service.c b/src/lib-master/master-service.c index 76cf50ed08..2a00c35a4c 100644 --- a/src/lib-master/master-service.c +++ b/src/lib-master/master-service.c @@ -430,6 +430,7 @@ bool master_service_parse_option(struct master_service *service, switch (opt) { case 'c': + i_free(service->config_path); service->config_path = i_strdup(arg); service->config_path_changed_with_param = TRUE; break;