Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7347855

Browse files
committed
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
1 parent b33ac1a commit 7347855

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9432,6 +9432,11 @@ getDefaultACLs(Archive *fout, int *numDefaultACLs)
94329432
racl_subquery->data,
94339433
initacl_subquery->data,
94349434
initracl_subquery->data);
9435+
9436+
destroyPQExpBuffer(acl_subquery);
9437+
destroyPQExpBuffer(racl_subquery);
9438+
destroyPQExpBuffer(initacl_subquery);
9439+
destroyPQExpBuffer(initracl_subquery);
94359440
}
94369441
else
94379442
{

0 commit comments

Comments
 (0)