No, he was transferred in '07 under Ghaddafi rule. When did the Libyans release him? Probably after Obama's Revolution.
Back then, Qadaffy was supposedly reformed, and dismantled his WMD program, sending his son out into the world to make speeches about democracy. Bush’s fault for trusting that song-and-dance act without verifiability. Of course as soon as the wind shifted under Obama, Qadaffy re-set his sails and released him. “A wise man foresees that which will be born from present actions.” (Ethics of the Fathers, paraphrased somewhat.)