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

From Alvaro Herrera
Subject Re: Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)
Date
Msg-id 20220914135643.lwzeu55resa3fkgd@alvherre.pgsql
Whole thread Raw
In response to Re: Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)  (Ranier Vilela <ranier.vf@gmail.com>)
List pgsql-hackers
On 2022-Sep-13, Ranier Vilela wrote:

> Yeah, as per Julien's answer, there is really no memory leak, but just
> unnecessary double execution of pstrdup.
> But for Postgres 15, I believe it's worth avoiding this, because it's
> wasted cycles.

Yeah, this is a merge mistake.  Fix applied, thanks.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: "Imseih (AWS), Sami"
Date:
Subject: Re: Query Jumbling for CALL and SET utility statements
Next
From: Tom Lane
Date:
Subject: Re: FTS parser - missing UUID token type