simplehash: Free collisions array in SH_STAT
authorAndres Freund <[email protected]>
Mon, 8 Apr 2024 02:00:11 +0000 (19:00 -0700)
committerAndres Freund <[email protected]>
Mon, 8 Apr 2024 02:09:05 +0000 (19:09 -0700)
commit25ee58e8f26df9ce3037258206eb100a3fc55103
treec7fcc477647922827b40613eeb7c153a46ace2bd
parent7a0541301078bdd0fb548141c43b335fbabcaf81
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 <[email protected]>
Reported-by: Coverity
Discussion: https://postgr.es/m/3005248.1712538233@sss.pgh.pa.us
Backpatch: 12-
src/include/lib/simplehash.h