Hi
I noticed that in the code, the variables `q_role` and `q_dbname` are processed with the `PQescapeLiteral` function,so `PQfreemem` – instead of `pfree` – should be used here to free the memory.
--Regards,Man Zengwww.openhalo.org