Probably doesn't apply in your example, but I've been told that in some situations aircraft will buy more fuel than needed if it's cheaper in one jurisdiction than other. For example, I've been told that a flight going YYC -> YVR -> YYC will buy enough fuel in YYC for the return trip, because it's cheaper to gas up in YYC than YVR.