Green’s Dictionary of Slang

leggner n.

[pun on stretch n. (2a)/SE stretch a leg]

(UK prison) a 12-month sentence.

[UK]Partridge DSUE (8th edn) 675: [...] mid-C.20.
[UK]J. Morton Lowspeak.