From: Heikki Linnakangas Date: Fri, 22 Aug 2025 11:47:19 +0000 (+0300) Subject: Revert unnecessary check for NULL X-Git-Tag: REL_18_RC1~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a26a3e4eeb279074421380ee332cc40690b2bac;p=thirdparty%2Fpostgresql.git Revert unnecessary check for NULL Jelte pointed out that this was unnecessary, but I failed to remove it before pushing f6f0542266. Oops. Reviewed-by: Jelte Fennema-Nio 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 8c2d03d8b9f..43ad672abce 100644 --- 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; }