mirror of
https://github.com/kakwa/uts-server
synced 2025-01-08 12:44:30 +01:00
fix potential memleak + comments
This commit is contained in:
parent
8579c06d00
commit
f92cb7213e
@ -340,6 +340,8 @@ int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd) {
|
|||||||
numthreads = atoi(value);
|
numthreads = atoi(value);
|
||||||
break;
|
break;
|
||||||
;
|
;
|
||||||
|
// if it's a path, resolve the full path first
|
||||||
|
// and put it in the http_options buffer
|
||||||
case PATH_HTTP_OPTIONS:
|
case PATH_HTTP_OPTIONS:
|
||||||
if (value != NULL) {
|
if (value != NULL) {
|
||||||
char *ptr = 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;
|
ct->http_options[http_counter] = ptr;
|
||||||
http_counter++;
|
http_counter++;
|
||||||
ct->cust_conf[cust_counter] = ptr;
|
ct->cust_conf[cust_counter] = ptr;
|
||||||
|
cust_counter++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user