A numerical study of the pre-ejection, magnetically-sheared corona as a free boundary problem