pgsql: Fix memory leak in pg_hmac

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix memory leak in pg_hmac
Date: 2021-10-01 20:50:24
Message-ID: E1mWPU8-0000FE-Vy@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix memory leak in pg_hmac

The intermittent h buffer was not freed, causing it to leak. Backpatch
through 14 where HMAC was refactored to the current API.

Author: Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru>
Discussion: https://postgr.es/m/af07e620-7e28-a742-4637-2bc44aa7c2be@postgrespro.ru
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0ded7039fab314afb7cbaf36b52209f253c05539

Modified Files
--------------
src/common/hmac.c | 5 +++++
1 file changed, 5 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2021-10-01 20:50:58 pgsql: Fix memory leak in pg_hmac
Previous Message Tom Lane 2021-10-01 19:00:07 pgsql: Avoid believing incomplete MCV-only stats in get_variable_range(