Free only if it's possible to free
@@ -185,6 +185,7 @@ void read_netlist(INP const char *net_file, INP const t_arch *arch,
*/
FreeTokens(&circuit_inputs);
+ if (circuit_outputs)
FreeTokens(&circuit_outputs);
if (circuit_clocks)
FreeTokens(&circuit_clocks);
