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

Commitf903d4d

Browse files
committed
pg_amcheck: Fix inconsistency in memory freeing
The function in charge of freeing the memory from a result created byPQescapeIdentifier() has to be PQfreemem(), to ensure that bothallocation and free come from libpq, but one spot in pg_amcheck wasmissing that.Oversight inb859d94.Author: Ranier Vilela <ranier.vf@gmail.com>Reviewed-by: vignesh C <vignesh21@gmail.com>Discussion:https://postgr.es/m/CAEudQArD_nKSnYCNUZiPPsJ2tNXgRmLbXGSOrH1vpOF_XtP0Vg@mail.gmail.comDiscussion:https://postgr.es/m/CAEudQArbTWVSbxq608GRmXJjnNSQ0B6R7CSffNnj2hPWMUsRNg@mail.gmail.comBackpatch-through: 14
1 parent7c906c5 commitf903d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pg_amcheck/pg_amcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ main(int argc, char *argv[])
559559

560560
executeCommand(conn,install_sql,opts.echo);
561561
pfree(install_sql);
562-
pfree(schema);
562+
PQfreemem(schema);
563563
}
564564

565565
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp