Browse Source

Plug a memory leak

pre-master-46
Holger Vogt 3 years ago
parent
commit
6ea2882c3b
  1. 6
      src/spicelib/analysis/noisean.c

6
src/spicelib/analysis/noisean.c

@ -232,16 +232,16 @@ NOISEan(CKTcircuit* ckt, int restart)
error = CKTload(ckt); error = CKTload(ckt);
if (error) return(error); if (error) return(error);
error = CKTnames(ckt, &numNames, &nameList);
if (error) return(error);
if (ckt->CKTkeepOpInfo) { if (ckt->CKTkeepOpInfo) {
error = CKTnames(ckt, &numNames, &nameList);
if (error) return(error);
/* Dump operating point. */ /* Dump operating point. */
error = SPfrontEnd->OUTpBeginPlot(ckt, ckt->CKTcurJob, error = SPfrontEnd->OUTpBeginPlot(ckt, ckt->CKTcurJob,
"NOISE Operating Point", "NOISE Operating Point",
NULL, IF_REAL, NULL, IF_REAL,
numNames, nameList, IF_REAL, numNames, nameList, IF_REAL,
&plot); &plot);
txfree(nameList);
if (error) return(error); if (error) return(error);
CKTdump(ckt, 0.0, plot); CKTdump(ckt, 0.0, plot);
SPfrontEnd->OUTendPlot(plot); SPfrontEnd->OUTendPlot(plot);

Loading…
Cancel
Save