I find that for me it's a case of just playing the song with the band until it sort of takes care of itself, but a good tip that I used at gigs as I was getting back into the swing of it after years of lay-off was to annotate my set list just a little. For example, the first note on the bass, who starts it etc etc written next to each song made a huge difference, and I quickly found that I'd learn how things went pretty quickly.
For example: I Fought The Law would have this written next to it - "Adam drum fill, C#\D". We Will Rock You (fast version) would have "Tom riff, E (@A7)", etc etc. I found that just the smallest aide memoire could make all the difference. It didn't take long until it was second nature and my confidence grew to the point where I didn't need them.
Cheers,
JRK