[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 0fde314f6f6: * lib-src/etags.c (process_file_name): Free malloc
From: |
Eli Zaretskii |
Subject: |
emacs-29 0fde314f6f6: * lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819). |
Date: |
Sun, 26 Feb 2023 13:03:49 -0500 (EST) |
branch: emacs-29
commit 0fde314f6f6e6664cddab1b2f0fe20629cd39d14
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
* lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819).
---
lib-src/etags.c | 2 ++
1 file changed, 2 insertions(+)
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 0fde314f6f6: * lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819).,
Eli Zaretskii <=