This upstream patch has been incorporated to fix the problem:
* lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819).
Origin: upstream, commit
0fde314f6f6e6664cddab1b2f0fe20629cd39d14
Bug: https://debbugs.gnu.org/61819
Bug-Debian: https://bugs.debian.org/
1031888
Forwarded: not-needed
int buf_len = strlen (compr->command) + strlen (" > ") + strlen (new_real_name) + strlen (new_tmp_name) + 1;
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