1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-09 06:28:06 +02:00

52204: fix thinko, unmeta() buffer should not be freed

This commit is contained in:
Bart Schaefer 2023-10-05 07:58:27 -07:00
parent 86196843bd
commit 1ffc6d0ef5
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2023-10-05 Bart Schaefer <schaefer@zsh.org>
* 52204: Src/parse.c: fix unmeta() thinko from 52193
2023-10-03 Bart Schaefer <schaefer@zsh.org> 2023-10-03 Bart Schaefer <schaefer@zsh.org>
* 52198: Src/input.c: put back incorrectly removed zfree() * 52198: Src/input.c: put back incorrectly removed zfree()

View file

@ -3421,10 +3421,8 @@ build_dump(char *nam, char *dump, char **files, int ali, int map, int flags)
zwarnnam(nam, "can't open file: %s", *files); zwarnnam(nam, "can't open file: %s", *files);
noaliases = ona; noaliases = ona;
unlink(dump); unlink(dump);
zsfree(fnam);
return 1; return 1;
} }
zsfree(fnam);
file = (char *) zalloc(flen + 1); file = (char *) zalloc(flen + 1);
file[flen] = '\0'; file[flen] = '\0';
lseek(fd, 0, 0); lseek(fd, 0, 0);