Fix memory leak in .into_inner_opt()