pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #17422: Memory leak
2+ messages / 2 participants
[nested] [flat]
* BUG #17422: Memory leak
@ 2022-03-01 17:06 PG Bug reporting form <noreply@postgresql.org>
2022-03-01 20:21 ` Re: BUG #17422: Memory leak Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2022-03-01 17:06 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: vitstn@gmail.com
The following bug has been logged on the website:
Bug reference: 17422
Logged by: Vitaly Stoyan
Email address: vitstn@gmail.com
PostgreSQL version: 13.6
Operating system: any
Description:
https://github.com/postgres/postgres/blob/REL_13_STABLE/src/backend/utils/adt/json.c#L83
It seems memory allocated by palloc for lex variable isn't freed
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #17422: Memory leak
2022-03-01 17:06 BUG #17422: Memory leak PG Bug reporting form <noreply@postgresql.org>
@ 2022-03-01 20:21 ` Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 2+ messages in thread
From: Andres Freund @ 2022-03-01 20:21 UTC (permalink / raw)
To: vitstn@gmail.com; pgsql-bugs@lists.postgresql.org
On 2022-03-01 17:06:02 +0000, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 17422
> Logged by: Vitaly Stoyan
> Email address: vitstn@gmail.com
> PostgreSQL version: 13.6
> Operating system: any
> Description:
>
> https://github.com/postgres/postgres/blob/REL_13_STABLE/src/backend/utils/adt/json.c#L83
>
> It seems memory allocated by palloc for lex variable isn't freed
In a lot of places we free memory in bulk by resetting memory contexts. See
https://github.com/postgres/postgres/blob/master/src/backend/utils/mmgr/README
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-03-01 20:21 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 17:06 BUG #17422: Memory leak PG Bug reporting form <noreply@postgresql.org>
2022-03-01 20:21 ` Andres Freund <andres@anarazel.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox