1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-13 07:48:05 +02:00

27823: fix memory access in 27822

This commit is contained in:
Peter Stephenson 2010-03-22 23:20:11 +00:00
parent 872e7ab08c
commit c2fdffa316

View file

@ -1171,7 +1171,7 @@ hend(Eprog prog)
if (histactive & HA_NOINC) {
zfree(chline, hlinesz);
zfree(chwords, chwordlen*sizeof(short));
chline = NULL;
chline = hptr = NULL;
chwords = NULL;
histactive = 0;
unqueue_signals();
@ -1286,7 +1286,7 @@ hend(Eprog prog)
}
zfree(chline, hlinesz);
zfree(chwords, chwordlen*sizeof(short));
chline = NULL;
chline = hptr = NULL;
chwords = NULL;
histactive = 0;
if (isset(SHAREHISTORY)? histfileIsLocked() : isset(INCAPPENDHISTORY))