1
0
mirror of https://github.com/coturn/coturn.git synced 2026-01-10 01:31:33 +01:00

use turn_free instead of free to fix memory leak in read_config_file

This commit is contained in:
Thibaut Ackermann 2018-10-04 09:58:45 +02:00
parent 58947cc531
commit ea0eadabde

View File

@ -1655,7 +1655,7 @@ static void read_config_file(int argc, char **argv, int pass)
config_file);
if (full_path_to_config_file) {
free(full_path_to_config_file);
turn_free(full_path_to_config_file, strlen(full_path_to_config_file)+1);
full_path_to_config_file = NULL;
}
}