We have a script that started running really slow. After debugging we eventually found that a call to mysql_free_result was taking 3 minutes to execute.
Has anyone else had any trouble with this function?