Content-Length: 256622 | pFad | https://github.com/postgrespro/postgres/commit/48e4ae9a0707b22cf874a4e8e531a07077318424

7F pg_amcheck: Fix inconsistency in memory freeing · postgrespro/postgres@48e4ae9 · GitHub
Skip to content

Commit 48e4ae9

Browse files
committed
pg_amcheck: Fix inconsistency in memory freeing
The function in charge of freeing the memory from a result created by PQescapeIdentifier() has to be PQfreemem(), to ensure that both allocation and free come from libpq, but one spot in pg_amcheck was missing that. Oversight in b859d94. Author: Ranier Vilela <ranier.vf@gmail.com> Reviewed-by: vignesh C <vignesh21@gmail.com> Discussion: https://postgr.es/m/CAEudQArD_nKSnYCNUZiPPsJ2tNXgRmLbXGSOrH1vpOF_XtP0Vg@mail.gmail.com Discussion: https://postgr.es/m/CAEudQArbTWVSbxq608GRmXJjnNSQ0B6R7CSffNnj2hPWMUsRNg@mail.gmail.com Backpatch-through: 14
1 parent 8709dcc commit 48e4ae9

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
@@ -560,7 +560,7 @@ main(int argc, char *argv[])
560560

561561
executeCommand(conn, install_sql, opts.echo);
562562
pfree(install_sql);
563-
pfree(schema);
563+
PQfreemem(schema);
564564
}
565565

566566
/*

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: https://github.com/postgrespro/postgres/commit/48e4ae9a0707b22cf874a4e8e531a07077318424

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy