Had a little look at the memory leak bug Amber-MD/pytraj#1615 as it was also annoying me.
Needed to delete the newParm pointer created by cpptraj after assignment as it remained on the heap. Not sure if this is the best way to handle it but it fixes the memory leak.
Had a little look at the memory leak bug Amber-MD/pytraj#1615 as it was also annoying me.
Needed to delete the newParm pointer created by cpptraj after assignment as it remained on the heap. Not sure if this is the best way to handle it but it fixes the memory leak.