Free only if it's possible to free
This commit is contained in:
parent
57a4ad1f99
commit
ff00e4c79c
|
@ -185,7 +185,8 @@ void read_netlist(INP const char *net_file, INP const t_arch *arch,
|
|||
*/
|
||||
|
||||
FreeTokens(&circuit_inputs);
|
||||
FreeTokens(&circuit_outputs);
|
||||
if (circuit_outputs)
|
||||
FreeTokens(&circuit_outputs);
|
||||
if (circuit_clocks)
|
||||
FreeTokens(&circuit_clocks);
|
||||
FreeNode(Top);
|
||||
|
|
Loading…
Reference in New Issue