projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2d260
)
Release temporary array in check_for_data_types_usage().
author
Tom Lane
<
[email protected]
>
Sun, 24 Mar 2024 16:13:35 +0000
(12:13 -0400)
committer
Tom Lane
<
[email protected]
>
Sun, 24 Mar 2024 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
.
src/bin/pg_upgrade/check.c
patch
|
blob
|
blame
|
history
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();
}