Skip to content

Commit

Permalink
lib-master: don't leak config path
Browse files Browse the repository at this point in the history
The config path can already be non-NULL thanks to the default config path
code or the CONFIG_PATH environmental variable.
  • Loading branch information
jeffpc authored and thuovila committed Aug 29, 2016
1 parent 37ff608 commit 7ba262b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-master/master-service.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7ba262b

Please sign in to comment.