Thermodynamics

A refrigerator transfers heat from a cold compartment to a warmer room. Why does this not violate the second law?