From 225e1dde463ae312714d71a929f45cfd153df2be Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 24 Mar 2024 12:13:35 -0400 Subject: [PATCH] Release temporary array in check_for_data_types_usage(). 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. --- src/bin/pg_upgrade/check.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c index c198896c9f..fe73ec4f00 100644 --- 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(); }