On Fri, Mar 09, 2018 at 01:32:47AM +0000, PG Bug reporting form wrote:
> Details: In function vacuum_one_database(), the memory allocated with
> pg_malloc() (at line 435), but the return value is freed with pfree() (at
> line 530). I think use the function pg_free() paired with pg_malloc() is
> better here.
In practice it does not matter much as pfree is just a wrapper on top of
pg_free(). Please see fe_memutils.c, which lists all the memory-related
APIs for frontends.
--
Michael