mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
ngmultidec.c, drop superfluous TMALLOC string allocation
This commit is contained in:
+1
-3
@@ -264,8 +264,7 @@ main (int argc, char **argv)
|
|||||||
fprintf(stdout,"\n");
|
fprintf(stdout,"\n");
|
||||||
fprintf(stdout,"* Lossy line models\n");
|
fprintf(stdout,"* Lossy line models\n");
|
||||||
|
|
||||||
options = TMALLOC(char, 256);
|
options = "rel=1.2 nocontrol";
|
||||||
(void) strcpy(options,"rel=1.2 nocontrol");
|
|
||||||
for (i=1;i<=num;i++) {
|
for (i=1;i<=num;i++) {
|
||||||
fprintf(stdout,".model mod%d_%s ltra %s r=%0.12g l=%0.12g g=%0.12g c=%0.12g len=%0.12g\n",
|
fprintf(stdout,".model mod%d_%s ltra %s r=%0.12g l=%0.12g g=%0.12g c=%0.12g len=%0.12g\n",
|
||||||
i,name,options,r,l+tpeigenvalues[i]*lm,g,ctot-tpeigenvalues[i]*cm,len);
|
i,name,options,r,l+tpeigenvalues[i]*lm,g,ctot-tpeigenvalues[i]*cm,len);
|
||||||
@@ -335,7 +334,6 @@ main (int argc, char **argv)
|
|||||||
tfree(matrix);
|
tfree(matrix);
|
||||||
tfree(inverse);
|
tfree(inverse);
|
||||||
tfree(name);
|
tfree(name);
|
||||||
tfree(options);
|
|
||||||
|
|
||||||
return EXIT_NORMAL;
|
return EXIT_NORMAL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user