To avoid leaks, don’t overfill the pies, and make sure the edges are well-sealed. You can also brush the edges with egg wash before sealing for a tighter closure.