Commit 098c703
committed
Remove redundant null pointer checks before pg_free()
These are especially useless because the whole point of pg_free() was
to do that very check before calling free().
pg_free() could be removed altogether, but I'm keeping it here to keep
the API consistent.
Discussion: https://www.postgresql.org/message-id/flat/dac5d2d0-98f5-94d9-8e69-46da2413593d%40enterprisedb.com1 parent e2bc242 commit 098c703
File tree
5 files changed
+13
-25
lines changed- src/bin
- pg_basebackup
- pg_upgrade
- pgbench
- psql
5 files changed
+13
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
504 | | - | |
| 503 | + | |
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
135 | 134 | | |
136 | | - | |
137 | | - | |
| 135 | + | |
138 | 136 | | |
139 | | - | |
140 | | - | |
| 137 | + | |
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
| |||
243 | 240 | | |
244 | 241 | | |
245 | 242 | | |
246 | | - | |
247 | | - | |
| 243 | + | |
248 | 244 | | |
249 | | - | |
250 | | - | |
| 245 | + | |
251 | 246 | | |
252 | | - | |
253 | | - | |
| 247 | + | |
254 | 248 | | |
255 | 249 | | |
256 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5475 | 5475 | | |
5476 | 5476 | | |
5477 | 5477 | | |
5478 | | - | |
5479 | | - | |
| 5478 | + | |
5480 | 5479 | | |
5481 | 5480 | | |
5482 | | - | |
5483 | | - | |
| 5481 | + | |
5484 | 5482 | | |
5485 | 5483 | | |
5486 | 5484 | | |
| |||
6637 | 6635 | | |
6638 | 6636 | | |
6639 | 6637 | | |
6640 | | - | |
6641 | | - | |
| 6638 | + | |
6642 | 6639 | | |
6643 | 6640 | | |
6644 | 6641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3492 | 3492 | | |
3493 | 3493 | | |
3494 | 3494 | | |
3495 | | - | |
3496 | | - | |
| 3495 | + | |
3497 | 3496 | | |
3498 | 3497 | | |
3499 | 3498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
| 258 | + | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| |||
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | | - | |
| 274 | + | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
| |||
0 commit comments