pgsql: Free memory allocated for unrecognized_protocol_options

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Free memory allocated for unrecognized_protocol_options
Date: 2026-03-13 21:57:35
Message-ID: E1w1AVi-0002C4-2E@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Free memory allocated for unrecognized_protocol_options

Since 4966bd3ed95e Valgrind started to warn about little amount of
memory being leaked in ProcessStartupPacket(). This is not critical
but the warnings may distract from real issues. Fix it by freeing the
list after use.

Author: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
Discussion: https://www.postgresql.org/message-id/CAJ7c6TN3Hbb5p=UHx0SPVN+h_JwPAV6rxoqOm7gHBMFKfnGK-Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/311a851436cb39145baff61a2936c5d327b040e3

Modified Files
--------------
src/backend/tcop/backend_startup.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2026-03-13 22:19:16 Re: pgsql: CREATE SUBSCRIPTION ... SERVER.
Previous Message Andres Freund 2026-03-13 20:48:34 Re: pgsql: CREATE SUBSCRIPTION ... SERVER.