sharedspice.c, remove meory leaks
This commit is contained in:
parent
4c60783e4d
commit
b14e7cb040
|
|
@ -614,6 +614,8 @@ ngSpice_Init(SendChar* printfcn, SendStat* statusfcn, ControlledExit* ngspiceexi
|
||||||
|
|
||||||
if (access(s, 0) == 0)
|
if (access(s, 0) == 0)
|
||||||
inp_source(s);
|
inp_source(s);
|
||||||
|
|
||||||
|
tfree(s);
|
||||||
}
|
}
|
||||||
#else /* ~ HAVE_PWD_H */
|
#else /* ~ HAVE_PWD_H */
|
||||||
{
|
{
|
||||||
|
|
@ -1397,8 +1399,10 @@ void SetAnalyse(
|
||||||
|
|
||||||
if (DecaPercent >= 1000){
|
if (DecaPercent >= 1000){
|
||||||
/* Because CKTmaxStep may be smaller than 0.1%, we print only when CKTtime is large enough. */
|
/* Because CKTmaxStep may be smaller than 0.1%, we print only when CKTtime is large enough. */
|
||||||
if (!strcmp(Analyse, "tran") && ckt && (ckt->CKTtime < ckt->CKTfinalTime - ckt->CKTmaxStep))
|
if (!strcmp(Analyse, "tran") && ckt && (ckt->CKTtime < ckt->CKTfinalTime - ckt->CKTmaxStep)) {
|
||||||
|
tfree(s);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
sprintf( s, "--ready--");
|
sprintf( s, "--ready--");
|
||||||
result = statfcn(s, ng_ident, userptr);
|
result = statfcn(s, ng_ident, userptr);
|
||||||
tfree(s);
|
tfree(s);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue