From ea0eadabde4d30b394f9efa1536eecd547e87e98 Mon Sep 17 00:00:00 2001 From: Thibaut Ackermann Date: Thu, 4 Oct 2018 09:58:45 +0200 Subject: [PATCH] use turn_free instead of free to fix memory leak in read_config_file --- src/apps/relay/mainrelay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/relay/mainrelay.c b/src/apps/relay/mainrelay.c index c4689f3b..dea7ec4c 100644 --- a/src/apps/relay/mainrelay.c +++ b/src/apps/relay/mainrelay.c @@ -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; } }