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

From PG Bug reporting form
Subject BUG #18338: Memory leak in function 'dumpRule'
Date
Msg-id 18338-ddb9deb8f1646d01@postgresql.org
Whole thread Raw
Responses Re: BUG #18338: Memory leak in function 'dumpRule'  (Daniel Gustafsson <daniel@yesql.se>)
Re: BUG #18338: Memory leak in function 'dumpRule'  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18338
Logged by:          Jora
Email address:      jora.gevorgyan@rau.am
PostgreSQL version: 16.2
Operating system:   Ubuntu 20.04
Description:

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

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)


pgsql-bugs by date:

Previous
From: "Reddy, Jaswanth"
Date:
Subject: Re: [E] Re: BUG #18337: Unable to write temp variables path
Next
From: Daniel Gustafsson
Date:
Subject: Re: BUG #18338: Memory leak in function 'dumpRule'