pgsql: Fix memory leaks in px_crypt_shacrypt().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix memory leaks in px_crypt_shacrypt().
Date: 2025-04-06 15:57:30
Message-ID: E1u1SNG-002yvY-0u@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix memory leaks in px_crypt_shacrypt().

Per Coverity. I don't think these are of any actual significance
since the function ought to be invoked in a short-lived context.
Still, if it's trying to be neat it should get it right.

Also const-ify a constant and fix up typedef formatting.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8ab6ef2bb8d9a00d205742932eb0b6daf62b34e0

Modified Files
--------------
contrib/pgcrypto/crypt-sha.c | 16 ++++++++--------
src/tools/pgindent/typedefs.list | 1 +
2 files changed, 9 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2025-04-06 16:12:00 pgsql: aio: Avoid spurious coverity warning
Previous Message Tom Lane 2025-04-06 15:37:16 pgsql: Use "(void)" to mark pgstat_lock_entry(..., false) calls.