There is nothing within the construction of a cooling appliance that can cause bad odours, and food spillage or rotting foods are normally the cause.
To remove the smells, thoroughly clean the interior of your fridge and sterilise it, first ensuring that the appliance is isolated from the mains supply.