Hi Tom, Per Coverity.
The function parse_hba_auth_op at (src/backend/libpq/hba.c) allows resource leaks when called by the function parse_hba_line, with parameters LOG and DEBUG3 levels. The function SplitGUCList (src/bin/pg_dump/dumputils.c) allows even returning FALSE, that namelist list is not empty and as memory allocated by pg_malloc. The simplest solution is free namelist, even when calling ereport, why the level can be LOG or DEBUG3. regards, Ranier Vilela PS. Are two SplitGUCList in codebase. 1. SplitGUCList (src/bin/pg_dump/dumputils.c) 2. SplitGUCList (src/backend/utils/adt/varlena.c)
fix_resource_leak_dba.patch
Description: Binary data