Was this stupid? Of course, but you know damn well you would do the same thing to save your dog. I mean they're part of the family and most people who have dogs would have run through those flames too.
Yikes...did you see his pants were all burned up? Looks like he has a few battle wounds but the owner and dog are going to be okay.