impunity

(n) exemption or freedom from punishment, harm, or loss    
Melvin wasn't punished for his behavior; rather, he got away with impunity.