Browse Source

destroy the tmalloced diag, if rshunt option was enabled

pre-master-46
Holger Vogt 8 years ago
parent
commit
12c864fb5a
  1. 3
      src/spicelib/analysis/cktdest.c

3
src/spicelib/analysis/cktdest.c

@ -18,6 +18,7 @@ Author: 1985 Thomas L. Quarles
#ifdef XSPICE #ifdef XSPICE
#include "ngspice/evtproto.h" #include "ngspice/evtproto.h"
#include "ngspice/mif.h" #include "ngspice/mif.h"
#include "ngspice/enh.h"
#endif #endif
int int
@ -88,6 +89,8 @@ CKTdestroy(CKTcircuit *ckt)
#ifdef XSPICE #ifdef XSPICE
EVTdest(ckt->evt); EVTdest(ckt->evt);
if (ckt->enh->rshunt_data.enabled)
FREE(ckt->enh->rshunt_data.diag);
FREE(ckt->enh); FREE(ckt->enh);
FREE(ckt->evt); FREE(ckt->evt);
#endif #endif

Loading…
Cancel
Save