changeset 20688:f5aefbab9677

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.
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Wed, 24 Aug 2016 03:56:44 -0400
parents ac22dd8b5dcc
children 6006f03b7757
files src/lib-master/master-service.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-master/master-service.c	Tue Aug 23 23:31:40 2016 +0300
+++ b/src/lib-master/master-service.c	Wed Aug 24 03:56:44 2016 -0400
@@ -430,6 +430,7 @@
 
 	switch (opt) {
 	case 'c':
+		i_free(service->config_path);
 		service->config_path = i_strdup(arg);
 		service->config_path_changed_with_param = TRUE;
 		break;