From f92cb7213e6a509a0a283df51b8d6b7e19814fea Mon Sep 17 00:00:00 2001 From: kakwa Date: Mon, 12 Sep 2016 08:20:07 +0200 Subject: [PATCH] fix potential memleak + comments --- src/lib/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/utils.c b/src/lib/utils.c index 8fb2c17..3818a93 100644 --- a/src/lib/utils.c +++ b/src/lib/utils.c @@ -340,6 +340,8 @@ int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd) { numthreads = atoi(value); break; ; + // if it's a path, resolve the full path first + // and put it in the http_options buffer case PATH_HTTP_OPTIONS: if (value != NULL) { char *ptr = NULL; @@ -349,6 +351,7 @@ int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd) { ct->http_options[http_counter] = ptr; http_counter++; ct->cust_conf[cust_counter] = ptr; + cust_counter++; } break; ;