Remove redundant null pointer checks before PQclear and PQconninfoFree
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 3 Jul 2022 18:11:05 +0000 (20:11 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 3 Jul 2022 18:11:05 +0000 (20:11 +0200)
commit5faef9d582012433db9ad05af27a77bd591508e1
treef3ace999fcaf45d69c3eb8428d3afc4819316530
parent02c408e21a6e78ff246ea7a1beb4669634fa9c4c
Remove redundant null pointer checks before PQclear and PQconninfoFree

These functions already had the free()-like behavior of handling null
pointers as a no-op.  But it wasn't documented, so add it explicitly
to the documentation, too.

Discussion: https://www.postgresql.org/message-id/flat/dac5d2d0-98f5-94d9-8e69-46da2413593d%40enterprisedb.com
13 files changed:
contrib/dblink/dblink.c
contrib/postgres_fdw/postgres_fdw.c
doc/src/sgml/libpq.sgml
src/bin/pg_basebackup/streamutil.c
src/bin/pg_dump/pg_dumpall.c
src/bin/psql/command.c
src/bin/psql/common.c
src/bin/psql/describe.c
src/fe_utils/query_utils.c
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c