mirror of
https://github.com/postgres/postgres.git
synced 2026-02-28 04:10:35 -05:00
Fix minor memory leak in pg_dump
A query used to read default ACL information from the catalogs did not
free a set of PQExpBuffer.
Oversight in commit e2090d9, so backpatch down to 9.6.
Author: Jie Zhang
Reviewed-by: Sawada Masahiko
Discussion: https://postgr.es/m/05bcbc5857f948efa0b451b85a48ae10@G08CNEXMBPEKD06.g08.fujitsu.local
Backpatch-through: 9.6
This commit is contained in:
parent
a2ac73e7be
commit
8f4ee44bcd
1 changed files with 5 additions and 0 deletions
|
|
@ -9592,6 +9592,11 @@ getDefaultACLs(Archive *fout, int *numDefaultACLs)
|
|||
racl_subquery->data,
|
||||
initacl_subquery->data,
|
||||
initracl_subquery->data);
|
||||
|
||||
destroyPQExpBuffer(acl_subquery);
|
||||
destroyPQExpBuffer(racl_subquery);
|
||||
destroyPQExpBuffer(initacl_subquery);
|
||||
destroyPQExpBuffer(initracl_subquery);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue