Fix possible resource leak (src/bin/pg_basebackup/pg_receivewal.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix possible resource leak (src/bin/pg_basebackup/pg_receivewal.c)
Date: 2025-02-11 11:49:06
Message-ID: CAEudQAoG0W7Y3hi+=bx5HhjaCiLs2EO6hw_aDDF8aLFU5AgTCQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

Per Coverity.

CID 1591288: (#1 of 1): Resource leak (RESOURCE_LEAK)
10. leaked_storage: Variable sysidentifier going out of scope leaks the
storage it points to.

Trivial patch attached.

best regards,
Ranier Vilela

Attachment Content-Type Size
fix-resource-leak-pg_receivewal.patch application/octet-stream 455 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2025-02-11 12:14:52 Re: pg_stat_statements and "IN" conditions
Previous Message Shlok Kyal 2025-02-11 11:26:21 Re: Restrict publishing of partitioned table with a foreign table as partition