Content-Length: 261820 | pFad | http://github.com/postgrespro/postgres_cluster/commit/8f4ee44bcdbcd437f860f2d048125a118335b088

47 Fix minor memory leak in pg_dump · postgrespro/postgres_cluster@8f4ee44 · GitHub
Skip to content

Commit 8f4ee44

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 a2ac73e commit 8f4ee44

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
@@ -9592,6 +9592,11 @@ getDefaultACLs(Archive *fout, int *numDefaultACLs)
95929592
racl_subquery->data,
95939593
initacl_subquery->data,
95949594
initracl_subquery->data);
9595+
9596+
destroyPQExpBuffer(acl_subquery);
9597+
destroyPQExpBuffer(racl_subquery);
9598+
destroyPQExpBuffer(initacl_subquery);
9599+
destroyPQExpBuffer(initracl_subquery);
95959600
}
95969601
else
95979602
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/8f4ee44bcdbcd437f860f2d048125a118335b088

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy