Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f4ee44

Browse files
committed
Fix minor memory leak in pg_dump
A query used to read default ACL information from the catalogs did notfree a set of PQExpBuffer.Oversight in commite2090d9, so backpatch down to 9.6.Author: Jie ZhangReviewed-by: Sawada MasahikoDiscussion:https://postgr.es/m/05bcbc5857f948efa0b451b85a48ae10@G08CNEXMBPEKD06.g08.fujitsu.localBackpatch-through: 9.6
1 parenta2ac73e commit8f4ee44

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)

[8]ページ先頭

©2009-2025 Movatter.jp