postgres.git / summary / log / commit / refs

commit    807ee417e562c355360e891f415e6e8e6e4c40ed
Author:   Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date:     Fri Aug 22 11:47:19 2025 +0000
First released in: 19.0, 18.0

    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 <postgres@jeltef.nl>
    Discussion: https://www.postgresql.org/message-id/CAGECzQT%3DxNV-V%2BvFC7YQwYQMj0wGN61b3p%3DJ1_rL6M0vbjTtrA@mail.gmail.com
    Backpatch-through: 18


src/interfaces/libpq/fe-protocol3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } [parent: e411a8d25a4b]