getting double free corruption, not good. Fix tomorrow