pgsql: simplehash: Free collisions array in SH_STAT

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: simplehash: Free collisions array in SH_STAT
Date: 2024-04-08 02:09:50
Message-ID: E1rteSD-0013a0-Qt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

simplehash: Free collisions array in SH_STAT

While SH_STAT() is only used for debugging, the allocated array can be large,
and therefore should be freed.

It's unclear why coverity started warning now.

Reported-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reported-by: Coverity
Discussion: https://postgr.es/m/3005248.1712538233@sss.pgh.pa.us
Backpatch: 12-

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4b179a47242993fe48b1bfa21b17dc9d5e2b35a2

Modified Files
--------------
src/include/lib/simplehash.h | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2024-04-08 02:13:55 pgsql: Remove redundant nbtree preprocessing assertions.
Previous Message Heikki Linnakangas 2024-04-08 02:06:38 Re: pgsql: Send ALPN in TLS handshake, require it in direct SSL connections