Re: [PATCH] psql: tab completion for ALTER ROLE ... IN DATABASE ...

zengman <zengman@halodbtech.com>

From: zengman <zengman@halodbtech.com>
To: VASUKI M <vasukianand0119@gmail.com>, Ian Lawrence Barwick <barwick@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-12-22T14:48:37Z
Lists: pgsql-hackers
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 Zeng
www.openhalo.org