Not surprised diet is the answer. But I lost 20 pounds when I trained for my first marathon, and I'm pretty sure I didn't change much with the diet.
Weight crept up halfway back when I decided to make a seriously attempt to improve my time enough to qualify for the Boston marathon. I didn't change diet but I limited portions, especially of less healthy foods and drinks. I also increased both the mileage and intensity, and dropped another 20 pounds.
I think for me that exercise does help a lot with my weight, especially if I don't use my running to justify eating a lot of junk. I've never really done a diet overhaul of my diet to see how that works. I enjoy running, and would rather not change my diet so much, so if that combo works for me, I'm going to stay with it. Unfortunately over the last couple years my running has been limited due to various health reasons, and my weight is back up over my original weight years ago. We'll see what running does for that once I can get back to that, which I'm working on.