Green’s Dictionary of Slang

lollipop v.1

also lolly-pop
[rhy. sl. = shop v.1 (2)]

to inform (on), to betray.

[US](con. 1910–20s) D. Mackenzie Hell’s Kitchen 168: Whether he was ‘lolly popped’ (peached upon) or whether he was ‘shopped’ ( given away by confederates) I am not sure.
[UK]Thieves Slang ms list from District Police Training Centre, Ryton-on-Dunsmore, Warwicks 6: Lolly popped (or shopped): Give away.
[UK]J. Curtis There Ain’t No Justice 126: ‘You might as well give us the tart’s monnicker.’ ‘All right,’ said Tommy. ‘Keep it under your hat [...]’ ‘All right. I won’t lollipop.’.
[UK]J. Franklyn Dict. of Rhy. Sl.
[UK]Dodson & Saczek Dict. of Cockney Rhy. Sl.
[UK]J. Morton Lowspeak.