From 30abcd3c328938f5ff0c543998f007d086955f02 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 7 Jan 2012 10:53:10 +0000 Subject: [PATCH] bug fix, CKTcurJob, make sure this is either up do date or NULL --- ChangeLog | 5 +++++ src/spicelib/analysis/cktdojob.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 766fde0b6..c0b27a137 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-07 Robert Larice + * src/spicelib/analysis/cktdojob.c : + bug fix, CKTcurJob, make sure this is either up do date or NULL + fix a valgrind report, access to allready freed memory during CKTtemp() + 2012-01-05 Holger Vogt * inpdomod.c: bug in error message for bjt removed diff --git a/src/spicelib/analysis/cktdojob.c b/src/spicelib/analysis/cktdojob.c index 3d19dd534..424f51608 100644 --- a/src/spicelib/analysis/cktdojob.c +++ b/src/spicelib/analysis/cktdojob.c @@ -125,6 +125,9 @@ CKTdoJob(CKTcircuit *ckt, int reset, TSKtask *task) FREE(ckt->CKTsenInfo); #endif + /* make sure this is either up do date or NULL */ + ckt->CKTcurJob = NULL; + /* normal reset */ if (!error) error = CKTunsetup(ckt);