[MASSMAIL]pgsql: simplehash: Free collisions array in SH_STAT - Mailing list pgsql-committers

From Andres Freund
Subject [MASSMAIL]pgsql: simplehash: Free collisions array in SH_STAT
Date
Msg-id E1rteSD-0013Zy-QJ@gemulon.postgresql.org
Whole thread Raw
List 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@sss.pgh.pa.us>
Reported-by: Coverity
Discussion: https://postgr.es/m/3005248.1712538233@sss.pgh.pa.us
Backpatch: 12-

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/eabf98e949e3a655494a32ceb8d146117cce0505

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


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Send ALPN in TLS handshake, require it in direct SSL connections
Next
From: Peter Geoghegan
Date:
Subject: [MASSMAIL]pgsql: Remove redundant nbtree preprocessing assertions.