Re: BUG #18338: Memory leak in function 'dumpRule' - Mailing list pgsql-bugs

From Daniel Gustafsson
Subject Re: BUG #18338: Memory leak in function 'dumpRule'
Date
Msg-id E4B97C94-5E2C-4821-A8FA-0A922747F841@yesql.se
Whole thread Raw
In response to BUG #18338: Memory leak in function 'dumpRule'  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
> On 12 Feb 2024, at 14:36, PG Bug reporting form <noreply@postgresql.org> wrote:

> The memory leak is found by a static analyzer developed at [CAST](
> https://www.linkedin.com/company/cast-center/).

Seems like they have some more work to do on their product.

> The memory alocated at [in qtabname]() is getting lost when function
> [pg_fatal is
>
called](https://github.com/postgres/postgres/blob/09eb633e1baa3b7cd7929f3cc77f9c46f63c20b1/src/bin/pg_dump/pg_dump.c#L18007)

See src/include/common/logging.h: pg_fatal() calls exit(1), so there is no leak
here.

--
Daniel Gustafsson




pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18338: Memory leak in function 'dumpRule'
Next
From: Heikki Linnakangas
Date:
Subject: Re: BUG #18338: Memory leak in function 'dumpRule'