Remove redundant null pointer checks before pg_free()
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 17 Jun 2022 09:51:38 +0000 (11:51 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 3 Jul 2022 07:05:34 +0000 (09:05 +0200)
commit098c703d308fa88dc9e3f9f623ca023ce4717794
tree81e03668d6fc6ea832f16996da78e3483beef4f7
parente2bc242833da27cd73c279bebfb321a65384808f
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.com
src/bin/pg_basebackup/walmethods.c
src/bin/pg_upgrade/parallel.c
src/bin/pgbench/pgbench.c
src/bin/psql/command.c
src/bin/psql/variables.c