diff --git a/eeschema/sim/ngspice.cpp b/eeschema/sim/ngspice.cpp index 9fcbee6d80..fb8d032064 100644 --- a/eeschema/sim/ngspice.cpp +++ b/eeschema/sim/ngspice.cpp @@ -206,7 +206,7 @@ bool NGSPICE::LoadNetlist( const string& aNetlist ) ngSpice_Circ( lines.data() ); for( auto line : lines ) - delete line; + free( line ); return true; }