git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e411a8d)
Revert unnecessary check for NULL
2025年8月22日 11:47:19 +0000 (14:47 +0300)
2025年8月22日 11:47:19 +0000 (14:47 +0300)
Jelte pointed out that this was unnecessary, but I failed to remove it
before pushing f6f0542266. Oops.

Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/CAGECzQT%3DxNV-V%2BvFC7YQwYQMj0wGN61b3p%3DJ1_rL6M0vbjTtrA@mail.gmail.com
Backpatch-through: 18


diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c
index 8c2d03d8b9f1da1795559febd68e3fc22bd36e19..43ad672abce9512b8b3e436c91488514fffb4ef9 100644 (file)
--- a/src/interfaces/libpq/fe-protocol3.c
+++ b/src/interfaces/libpq/fe-protocol3.c
@@ -1645,8 +1645,7 @@ getNotify(PGconn *conn)
}
if (pqGets(&conn->workBuffer, conn))
{
- if (svname)
- free(svname);
+ free(svname);
return EOF;
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /