From c2fdffa316b8a67bc4bc61a0f5c68ecc27a68b6b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 22 Mar 2010 23:20:11 +0000 Subject: 27823: fix memory access in 27822 --- Src/hist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/hist.c b/Src/hist.c index 08a613d4c..ee5422cc9 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -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)) -- cgit 1.4.1