Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)
Date: 2022-09-13 13:21:22
Message-ID: CAEudQAr4nOcNQskC4oBEZN4S+4heJ=1ch_ZKOxU+_Ef-FQSf-g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The commit: Revert SQL/JSON features
https://github.com/postgres/postgres/commit/2f2b18bd3f554e96a8cc885b177211be12288e4a

Left a little oversight.
I believe it will be properly corrected when it is applied again.
However, for Postgres 15 this may can cause a small memory leak.

Attached a fix patch.

regards,
Ranier Vilela

Attachment Content-Type Size
avoid-redundant-initialization-and-possible-memory-leak.patch application/octet-stream 881 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-09-13 13:45:24 Re: Tuples inserted and deleted by the same transaction
Previous Message Peter Eisentraut 2022-09-13 12:41:41 Re: ICU for global collation