From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | vitstn(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #17422: Memory leak |
Date: | 2022-03-01 20:21:12 |
Message-ID: | 20220301202112.f6dc5ooory7tqdir@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2022-03-02 10:50:35 | BUG #17424: Build failed on disabled GNUC in Clang environment CFLAGS= -O2 -fgnuc-version=0 |
Previous Message | PG Bug reporting form | 2022-03-01 17:06:02 | BUG #17422: Memory leak |