From fff4f63b9797b70ec384b500def849437bab75f9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 16 Aug 2009 20:37:44 +0000 Subject: 27216: set chwords to NULL when freed --- Src/hist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/hist.c') diff --git a/Src/hist.c b/Src/hist.c index 7f52ee08b..86b08bd45 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -1156,6 +1156,7 @@ hend(Eprog prog) zfree(chline, hlinesz); zfree(chwords, chwordlen*sizeof(short)); chline = NULL; + chwords = NULL; histactive = 0; unqueue_signals(); return 1; @@ -1270,6 +1271,7 @@ hend(Eprog prog) zfree(chline, hlinesz); zfree(chwords, chwordlen*sizeof(short)); chline = NULL; + chwords = NULL; histactive = 0; if (isset(SHAREHISTORY)? histfileIsLocked() : isset(INCAPPENDHISTORY)) savehistfile(hf, 0, HFILE_USE_OPTIONS | HFILE_FAST); -- cgit 1.4.1