Netlist: Fix a memory leak