Charles Hector ( PM did not free Anwar, the court did ) misunderstood unintentionally or otherwise what Anwar Ibrahim said with regards to thanking Prime Minister Abdullah Badawi.
Anwar had made it clear many times that there were no deals with the PM for his release and that he (Anwar) does not believe that the PM influenced and/or directed the judiciary to release him.
What Anwar, and the whole world, believe is that a free and independent judiciary would naturally release him as there are no reasonable ground not to do so.
What Abdullah merely did was to ensure that the judiciary is free from any pressure from himself or anyone in the government. For that, Anwar, and the whole world thank the honourable prime minister.