From: Eli Zaretskii Date: Sun, 26 Feb 2023 18:03:20 +0000 (+0200) Subject: * lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819). X-Git-Tag: emacs-29.0.90~307 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0fde314f6f6e6664cddab1b2f0fe20629cd39d14;p=emacs.git * lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819). --- 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