git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc2d260)
Release temporary array in check_for_data_types_usage().
2024年3月24日 16:13:35 +0000 (12:13 -0400)
2024年3月24日 16:13:35 +0000 (12:13 -0400)
Coverity identified this as a resource leak. It's surely of no
consequence given that the function is called only once per run, but
freeing the storage is no more work than dismissing the complaint.
Minor oversight in commit 347758b12.


diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c
index c198896c9f0fba7df38285e16edabd80de8f1a00..fe73ec4f00b38f113d8abf0060c1998bc28d92e0 100644 (file)
--- a/src/bin/pg_upgrade/check.c
+++ b/src/bin/pg_upgrade/check.c
@@ -521,6 +521,8 @@ check_for_data_types_usage(ClusterInfo *cluster, DataTypesUsageChecks * checks)
if (found)
pg_fatal("Data type checks failed: %s", report.data);
+ pg_free(results);
+
check_ok();
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /