mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-24 23:38:04 +02:00
27823: fix memory access in 27822
This commit is contained in:
parent
872e7ab08c
commit
c2fdffa316
1 changed files with 2 additions and 2 deletions
|
@ -1171,7 +1171,7 @@ hend(Eprog prog)
|
||||||
if (histactive & HA_NOINC) {
|
if (histactive & HA_NOINC) {
|
||||||
zfree(chline, hlinesz);
|
zfree(chline, hlinesz);
|
||||||
zfree(chwords, chwordlen*sizeof(short));
|
zfree(chwords, chwordlen*sizeof(short));
|
||||||
chline = NULL;
|
chline = hptr = NULL;
|
||||||
chwords = NULL;
|
chwords = NULL;
|
||||||
histactive = 0;
|
histactive = 0;
|
||||||
unqueue_signals();
|
unqueue_signals();
|
||||||
|
@ -1286,7 +1286,7 @@ hend(Eprog prog)
|
||||||
}
|
}
|
||||||
zfree(chline, hlinesz);
|
zfree(chline, hlinesz);
|
||||||
zfree(chwords, chwordlen*sizeof(short));
|
zfree(chwords, chwordlen*sizeof(short));
|
||||||
chline = NULL;
|
chline = hptr = NULL;
|
||||||
chwords = NULL;
|
chwords = NULL;
|
||||||
histactive = 0;
|
histactive = 0;
|
||||||
if (isset(SHAREHISTORY)? histfileIsLocked() : isset(INCAPPENDHISTORY))
|
if (isset(SHAREHISTORY)? histfileIsLocked() : isset(INCAPPENDHISTORY))
|
||||||
|
|
Loading…
Reference in a new issue