correcting Resource leak
correcting Resource leak