mirror of git://git.code.sf.net/p/zsh/code
27823: fix memory access in 27822
This commit is contained in:
parent
872e7ab08c
commit
c2fdffa316
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue