mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-19 23:21:25 +02:00
52204: fix thinko, unmeta() buffer should not be freed
This commit is contained in:
parent
86196843bd
commit
1ffc6d0ef5
2 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue