libembroidery memory cleanup.