Your heart is the right place, but I honestly do not see the point in getting the dog medical attention, then just dropping him in the street again.

I agree with those who mentioned calling the shelter.