summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index b905426..116cb52 100644
--- a/src/options.c
+++ b/src/options.c
@@ -234,6 +234,8 @@ void options_parse_post(options_t* opt)
if(opt->config_file_ && opt->local_port_) {
log_printf(WARNING, "local port and config file specified, will ignore config file");
+ free(opt->config_file_);
+ opt->config_file_ = NULL;
}
if(opt->buffer_size_ <= 0) {