simplehash: Free collisions array in SH_STAT

Andres Freund <andres@anarazel.de>

Commit: 25ee58e8f26df9ce3037258206eb100a3fc55103
Author: Andres Freund <andres@anarazel.de>
Date: 2024-04-08T02:09:05Z
Releases: 14.12
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-

Files

PathChange+/−
src/include/lib/simplehash.h modified +3 −0

Discussion