Multi-choice problem: does word "leave" have the same meaning in the following two sentences?

She was granted leave to speak.

Might I beg leave to accompany you?

Pick your answer from:
 * different meanings.
 * the same meaning.
the same meaning