hmm, m_features is a DynamicObjectArray... m_model->get_features() is my old change from your code, I remember there was a get_features() in StructuredOutputMachine at beginning. But no idea, why no meak leak happens.