This question has options. Does the word "leave" have the same definition in the next two sentences?

Might I beg leave to accompany you?

The applicant now seeks leave to appeal and, if leave be granted, to appeal against these sentences.

Select from: 1. different meanings; 2. the same meaning;
2.