forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd0d22d
Remove unneeded null pointer checks before PQfreemem()
PQfreemem() just calls free(), and the latter already checks for nullpointers.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/cf26e970-8e92-59f1-247a-aa265235075b%40enterprisedb.com1 parent21567e1 commitbd0d22d
File tree
3 files changed
+8
-16
lines changed- contrib/vacuumlo
- src
- backend/replication/libpqwalreceiver
- bin/pg_basebackup
3 files changed
+8
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
240 | 237 | | |
241 | 238 | | |
242 | 239 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
745 | | - | |
| 744 | + | |
746 | 745 | | |
747 | 746 | | |
748 | 747 | | |
| |||
768 | 767 | | |
769 | 768 | | |
770 | 769 | | |
771 | | - | |
772 | | - | |
| 770 | + | |
773 | 771 | | |
774 | 772 | | |
775 | 773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
862 | | - | |
| 861 | + | |
863 | 862 | | |
864 | 863 | | |
865 | 864 | | |
| |||
940 | 939 | | |
941 | 940 | | |
942 | 941 | | |
943 | | - | |
944 | | - | |
| 942 | + | |
945 | 943 | | |
946 | 944 | | |
947 | 945 | | |
| |||
1204 | 1202 | | |
1205 | 1203 | | |
1206 | 1204 | | |
1207 | | - | |
1208 | | - | |
| 1205 | + | |
1209 | 1206 | | |
1210 | 1207 | | |
1211 | 1208 | | |
| |||
0 commit comments
Comments
(0)