Continuity mistake: When the delegates assemble in the Great Hall, it is first shown that Canada is sitting to the left of Morocco. But shortly afterwards, Morocco is suddenly sitting to the left of Iceland, and Canada has mysteriously vanished.
Continuity mistake: When McLeach discovers Cody in the hole, McLeach reaches in with his shotgun to help Cody out. It would have to be a very large gun to reach into the bottom of the hole, yet when Cody is pulled out, the gun is shown to be quite small.
Continuity mistake: When McLeach pulls Cody out of the hole, the distant shot of them (where the Bushwhacker vehicle is shown to the left) shows a golden feather in McLeach's akubra hat that does not appear in any other shot until McLeach subsequently takes the one from Cody's backpack and fits it onto his hat. This is not McLeach's own feather because that is later revealed to have been stored in his vest. (00:12:15)
Continuity mistake: When McLeach is using Cody to fish for crocodiles, the hook fastened to the rope around Cody's waist can be seen facing different directions in various shots. (01:06:45 - 01:09:35)
Answer: Cody most likely told the authorities and had them freed.