BUG #16921: small memory leak

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: rekgrpth(at)gmail(dot)com
Subject: BUG #16921: small memory leak
Date: 2021-03-11 06:06:02
Message-ID: 16921-23c47c8f89ba7855@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16921
Logged by: Geo Sil
Email address: rekgrpth(at)gmail(dot)com
PostgreSQL version: 13.2
Operating system: ubuntu
Description:

Is there a small memory leak here?
file: postgres/src/pl/plpgsql/src/pl_handler.c
function: plpgsql_extra_checks_check_hook
code: myextra = (int *) malloc(sizeof(int));
I don't find freeing memory.
But I suggest do it in functions plpgsql_extra_warnings_assign_hook and
plpgsql_extra_errors_assign_hook

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thiagarajan Ramanathan 2021-03-11 07:43:09 Postgres 11.6 RHEL 8 UUID-OSSP not getting installed , while installing contrib.
Previous Message tomohiro hiramitsu 2021-03-11 05:10:39 Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table.