[PATCH] Fix possible minor memory leak (src/backend/catalog/heap.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Fix possible minor memory leak (src/backend/catalog/heap.c)
Date: 2022-02-17 12:35:06
Message-ID: CAEudQAqivOGouww_WGUqZz1VHVBEq_kSeX_1yrKPFO68PagOjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Per Coverity.

Maybe this is a mistake, but,
Is it necessary or not to free the memory allocated by nodeToString?

If yes, the patch attached fixes this.

regards,

Ranier Vilela

Attachment Content-Type Size
fix_minor_memory_leak_heap.patch application/octet-stream 1.4 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2022-02-17 12:48:12 Re: [PATCH] Fix out-of-bouds access (src/common/wchar.c)
Previous Message Ranier Vilela 2022-02-17 12:19:17 Re: [PATCH] Fix out-of-bouds access (src/common/wchar.c)