Re: [PATCH v1] fix potential memory leak in untransformRelOptions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [PATCH v1] fix potential memory leak in untransformRelOptions
Date
Msg-id 20220913100147.zm322p3c2qquru7c@alvherre.pgsql
Whole thread Raw
In response to Re: [PATCH v1] fix potential memory leak in untransformRelOptions  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
On 2022-Sep-09, Alvaro Herrera wrote:

> Keeping 's' and removing the pstrdups better uses memory, because we
> have a single palloc'ed chunk per option rather than two.

Pushed.  This is pretty much cosmetic, so no backpatch.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"The Gord often wonders why people threaten never to come back after they've
been told never to return" (www.actsofgord.com)



pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: START_REPLICATION SLOT causing a crash in an assert build
Next
From: Laurenz Albe
Date:
Subject: Re: Tuples inserted and deleted by the same transaction