From 527e2064a567e00b5fedb39cce0ae47369954a29 Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Fri, 6 Dec 2024 16:19:36 +0100 Subject: [PATCH] memory leak --- util/econftool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/econftool.c b/util/econftool.c index 419ea11..008a028 100644 --- a/util/econftool.c +++ b/util/econftool.c @@ -132,6 +132,7 @@ static void change_root_dir(char **change_path) free(tmp); } else { + free(*change_path); if (asprintf(change_path, "%s", getenv("ECONFTOOL_ROOT")) < 0) { fprintf(stderr, "Out of memory!\n"); exit(EXIT_FAILURE);