Add missing PQclear for StreamLogicalLog function

Steven Niu <niushiji@gmail.com>

From: Steven Niu <niushiji@gmail.com>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Cc: daniel@yesql.se
Date: 2025-03-19T05:38:26Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. pg_basebackup: Add missing PQclear in error path

Attachments

Hi, hackers,

During browsing the code, I found one missing PQclear in function 
StreamLogicalLog(). It's a very small problem as it only happens in 
error condition. However since another similar patch was accepted,
maybe we should also fix this one.

https://www.postgresql.org/message-id/flat/3DA7CECD-5A05-416D-8527-ABD794AEFE8B%40yesql.se#c5d662ba7bdb07e56ddbd9aaa90dea5d 


Regards,
Steven