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
1 changed files with 2 additions and 2 deletions

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))