Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: munmap_chunk(): invalid pointer
My fault, I forgot unmeta() re-uses its zalloc'd buffer.
diff --git a/Src/parse.c b/Src/parse.c
index f7285c2ed..c0a1e9f95 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -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);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author