Skip to content

Commit

Permalink
doveconf: Don't read freed memory.
Browse files Browse the repository at this point in the history
Giving -c parameter frees the returned orig_config_path.
  • Loading branch information
sirainen committed Jan 17, 2017
1 parent 521c046 commit 2568cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/doveconf.c
Expand Up @@ -730,7 +730,7 @@ int main(int argc, char *argv[])
i_zero(&filter);
master_service = master_service_init("config", master_service_flags,
&argc, &argv, "adf:hHm:nNpPexS");
orig_config_path = master_service_get_config_path(master_service);
orig_config_path = t_strdup(master_service_get_config_path(master_service));

i_set_failure_prefix("doveconf: ");
t_array_init(&module_names, 4);
Expand Down

0 comments on commit 2568cb8

Please sign in to comment.