Corrected a problem with an uninitialized entry in ExtCurStyle that

could cause serious errors on systems that do not auto-zero allocated
memory.  Also:  Fixed an error introduced by a recent commit to allocate
character memory for efReadLine() which frees the memory before reading
a .res.ext file, causing a crash when using "ext2spice" with the
"extresist on" option.
This commit is contained in:
Tim Edwards
2020-06-05 12:46:46 -04:00
parent ac244109bc
commit fc9ecd2c9b
7 changed files with 29 additions and 16 deletions
+1 -1
View File
@@ -606,7 +606,6 @@ resistChanged:
}
}
(void) fclose(inf);
if (line != NULL) freeMagic(line);
/* Is there an "extresist" extract file? */
if (DoResist)
@@ -616,6 +615,7 @@ resistChanged:
if (inf != NULL)
goto readfile;
}
if (line != NULL) freeMagic(line);
/* If we are considering standard cells, only the first level of */
/* subcircuits is meaningful. */