You can't just let the gas go into atmosphere. It should be removed by an air-con specialist (mobile ones exist). It will probably be as cheap to have them replace the damaged pipe as well since the system will need rechargiing with gas anyway.
Allan