]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: don't leak config path
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Wed, 24 Aug 2016 07:56:44 +0000 (03:56 -0400)
committerJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Wed, 24 Aug 2016 07:56:44 +0000 (03:56 -0400)
The config path can already be non-NULL thanks to the default config path
code or the CONFIG_PATH environmental variable.

src/lib-master/master-service.c

index f907883bad66203f6a2a73ae820ebbfa62cde157..0c5d355cd7ab0b50dc618a1dcf30fd153d122b9c 100644 (file)
@@ -436,6 +436,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;