From 0fde314f6f6e6664cddab1b2f0fe20629cd39d14 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 26 Feb 2023 20:03:20 +0200 Subject: * lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819). --- lib-src/etags.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib-src') diff --git a/lib-src/etags.c b/lib-src/etags.c index 9fb9e312a66..0b048748602 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -1732,6 +1732,8 @@ process_file_name (char *file, language *lang) char *cmd = xmalloc (buf_len); snprintf (cmd, buf_len, "%s %s > %s", compr->command, new_real_name, new_tmp_name); + free (new_real_name); + free (new_tmp_name); #endif inf = (system (cmd) == -1 ? NULL -- cgit v1.2.3