mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-03 16:29:09 +02:00
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:
+1
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user