Apr 2024

1 commit
simplehash: Free collisions array in SH_STAT
8 Apr 2024Andres Freundmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16.3REL_15_STABLE15.7REL_14_STABLE14.12REL_13_STABLE13.15+1 more
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Tom Lane reported the leaked collisions array and proposed freeing it in #1; Andres Freund agreed in #2. The commit adds pfree(collisions) and an explanatory comment in src/include/lib/simplehash.h's SH_STAT(), implementing the discussed fix without an attached patch.

  • Tom Lanesaw the final versionLLM analysis, 99% sureTom proposed freeing the leaked array in #1 and endorsed Andres's plan to backpatch the fix in #3, before the commit.

Credits across 1 commit

Reported by
Coverity1
Tom Lane1
Committer
Andres Freund1