Fix memory leak ido_pgsql