mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-05 19:22:38 +02:00
destroy the tmalloced diag, if rshunt option was enabled
This commit is contained in:
@@ -18,6 +18,7 @@ Author: 1985 Thomas L. Quarles
|
||||
#ifdef XSPICE
|
||||
#include "ngspice/evtproto.h"
|
||||
#include "ngspice/mif.h"
|
||||
#include "ngspice/enh.h"
|
||||
#endif
|
||||
|
||||
int
|
||||
@@ -88,6 +89,8 @@ CKTdestroy(CKTcircuit *ckt)
|
||||
|
||||
#ifdef XSPICE
|
||||
EVTdest(ckt->evt);
|
||||
if (ckt->enh->rshunt_data.enabled)
|
||||
FREE(ckt->enh->rshunt_data.diag);
|
||||
FREE(ckt->enh);
|
||||
FREE(ckt->evt);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user