pgsql: simplehash: Free collisions array in SH_STAT

Started by Andres Freundover 2 years ago1 messagescomitters
Jump to latest
#1Andres Freund
andres@anarazel.de

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: /messages/by-id/3005248.1712538233@sss.pgh.pa.us
Backpatch: 12-

Branch
------
master

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

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