Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)
Date
Msg-id CAEudQAr4nOcNQskC4oBEZN4S+4heJ=1ch_ZKOxU+_Ef-FQSf-g@mail.gmail.com
Whole thread Raw
Responses Re: Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)
Re: Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)
List pgsql-hackers
Hi,

The commit: Revert SQL/JSON features

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

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: ICU for global collation
Next
From: Tom Lane
Date:
Subject: Re: Tuples inserted and deleted by the same transaction