Avoid resource leak (src/test/modules/test_binaryheap/test_binaryheap.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Avoid resource leak (src/test/modules/test_binaryheap/test_binaryheap.c)
Date: 2025-09-12 17:53:56
Message-ID: CAEudQAqTGoxnCmz_O=To4gXtAb4MN4MGadr5O=2O7dMNktxd3A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

Per Coverity.

Coverity reports this resource leak in test_binaryheap module.
I think that is right.

Trivial patch attached.

best regards,
Ranier Vilela

Attachment Content-Type Size
avoid-resource-leak-test_binaryheap.patch application/octet-stream 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Antonin Houska 2025-09-12 18:03:36 Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext
Previous Message Tom Lane 2025-09-12 17:53:17 Re: ABI Compliance Checker GSoC Project