You wouldn't want to keep gnats in your fridge for a second. If you have gnats in your fridge, they most likely came from a vegetable you put in. To let the gnats out, open the doors of the fridge and wash all organic food under the tap.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.