Avoid use scoped block variable - Mailing list pgsql-hackers

From Ranier Vilela
Subject Avoid use scoped block variable
Date
Msg-id CAEudQArS2PHeZGNHqsHVeGhSPZtqdmjDfZu1ta4=4jib8mYknw@mail.gmail.com
Whole thread Raw
Responses Re: Avoid use scoped block variable
Re: Avoid use scoped block variable
List pgsql-hackers
Hi.

I noticed a possible violation of C rules.
Some functions rely on local block variables, 
but this are a mistake.
Once that block exits, the memory of the variable is released.

Fix by moving the declaration variables.

best regards,
Ranier Vilela


Attachment

pgsql-hackers by date:

Previous
From: Сергей Соловьев
Date:
Subject: Re: Introduce Index Aggregate - new GROUP BY strategy
Next
From: Andres Freund
Date:
Subject: Re: Avoid use scoped block variable