The dam problem for linear Darcy's law and nonlinear leaky boundary conditions