mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -3628,6 +3628,9 @@ char *PQresultErrorField(const PGresult *res, int fieldcode);
|
||||
<synopsis>
|
||||
void PQclear(PGresult *res);
|
||||
</synopsis>
|
||||
|
||||
If the argument is a <symbol>NULL</symbol> pointer, no operation is
|
||||
performed.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -6670,6 +6673,8 @@ void PQfreemem(void *ptr);
|
||||
<synopsis>
|
||||
void PQconninfoFree(PQconninfoOption *connOptions);
|
||||
</synopsis>
|
||||
If the argument is a <symbol>NULL</symbol> pointer, no operation is
|
||||
performed.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user