Mercurial > dovecot > core-2.2
changeset 21420:be975b41463b
doveconf: Don't read freed memory.
Giving -c parameter frees the returned orig_config_path.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 17 Jan 2017 20:03:40 +0200 |
parents | 046af124f98d |
children | b2f4b698fd3c |
files | src/config/doveconf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/config/doveconf.c Tue Jan 17 15:22:44 2017 +0200 +++ b/src/config/doveconf.c Tue Jan 17 20:03:40 2017 +0200 @@ -727,7 +727,7 @@ master_service = master_service_init("config", MASTER_SERVICE_FLAG_STANDALONE, &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);