1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-21 19:31:50 +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>
* 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);
noaliases = ona;
unlink(dump);
zsfree(fnam);
return 1;
}
zsfree(fnam);
file = (char *) zalloc(flen + 1);
file[flen] = '\0';
lseek(fd, 0, 0);