How to prevent leaking at night.

Wanna try cloth diapers for the night. But haven't don't it yet because his cloth diapers leak after 1-2 hours even during the day. Am I doing STH wrong?