Re: Avoid resource leak (src/test/regress/pg_regress.c)

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Avoid resource leak (src/test/regress/pg_regress.c)
Date: 2025-10-24 12:21:42
Message-ID: 202510241220.sq5ct66v7jfg@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2025-Oct-24, Ranier Vilela wrote:

> Em sex., 24 de out. de 2025 às 03:03, Michael Paquier
> <michael(at)paquier(dot)xyz> escreveu:

> > This is just one of them, allocated in the context of what is a
> > short-term execution.
>
> In this case, I believe pg_regress is run, thousands of times, on
> hundreds of computers.

Yes, but the memory is released at the end of the program execution,
every single one of those times.

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Srinath Reddy Sadipiralla 2025-10-24 12:21:54 Re: Making pg_rewind faster
Previous Message Heikki Linnakangas 2025-10-24 12:21:17 Re: Reorganize GUC structs