Commit 353708e
committed
Clean up recent Coverity complaints.
Commit 5c649fe introduced a memory leak into pg_basebackup's
parse_compress_options. (I simplified nearby code while at it.)
Commit 9a974cb introduced a memory leak into pg_dump's
binary_upgrade_set_pg_class_oids.
Coverity also complained about a call of SnapBuildProcessChange that
ignored the result, unlike every other call of that function. This
is evidently intentional, so add a (void) cast to indicate that.
(It's also old, dating to b89e151; I suppose the reason it showed
up now is 7a5f6b4's recent rearrangement of nearby code.)1 parent dc43fc9 commit 353708e
File tree
3 files changed
+10
-4
lines changed- src
- backend/replication/logical
- bin
- pg_basebackup
- pg_dump
3 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
| 501 | + | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
| 951 | + | |
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
| 962 | + | |
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
| 986 | + | |
| 987 | + | |
986 | 988 | | |
987 | 989 | | |
988 | 990 | | |
| |||
992 | 994 | | |
993 | 995 | | |
994 | 996 | | |
| 997 | + | |
995 | 998 | | |
996 | 999 | | |
997 | 1000 | | |
| |||
1010 | 1013 | | |
1011 | 1014 | | |
1012 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
1013 | 1018 | | |
1014 | 1019 | | |
1015 | 1020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4714 | 4714 | | |
4715 | 4715 | | |
4716 | 4716 | | |
4717 | | - | |
4718 | 4717 | | |
4719 | 4718 | | |
4720 | 4719 | | |
| |||
4728 | 4727 | | |
4729 | 4728 | | |
4730 | 4729 | | |
| 4730 | + | |
| 4731 | + | |
4731 | 4732 | | |
4732 | 4733 | | |
4733 | 4734 | | |
| |||
0 commit comments