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

Commit9add1bb

Browse files
Fix small memory leaks in GUC checks
Follow-up commit toa9d58bf. Backpatch down to v16 wherethis was added in order to keep the code consistent for futurebackpatches.Author: Tofig Aliev <t.aliev@postgrespro.ru>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>Discussion:https://postgr.es/m/bba4313fdde9db46db279f96f3b748b1@postgrespro.ruBackpatch-through: 16
1 parent556f7b7 commit9add1bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/commands/variable.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,8 @@ check_application_name(char **newval, void **extra, GucSource source)
10821082
return false;
10831083
}
10841084

1085+
guc_free(*newval);
1086+
10851087
pfree(clean);
10861088
*newval=ret;
10871089
return true;
@@ -1118,6 +1120,8 @@ check_cluster_name(char **newval, void **extra, GucSource source)
11181120
return false;
11191121
}
11201122

1123+
guc_free(*newval);
1124+
11211125
pfree(clean);
11221126
*newval=ret;
11231127
return true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp