Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 225e1dd

Browse files
committed
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 347758b.
1 parent fc2d260 commit 225e1dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/pg_upgrade/check.c

+2
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,8 @@ check_for_data_types_usage(ClusterInfo *cluster, DataTypesUsageChecks * checks)
521521
if (found)
522522
pg_fatal("Data type checks failed: %s", report.data);
523523

524+
pg_free(results);
525+
524526
check_ok();
525527
}
526528

0 commit comments

Comments
 (0)