Fix resource leaks in pool_memqcache.c.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 14 Sep 2024 13:52:49 +0000 (22:52 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 14 Sep 2024 13:54:38 +0000 (22:54 +0900)
commit1a089995ca58f4e2d225507c5a6061f57f7bdc61
treed14d607525e49f09c27252a3465f90fd364b40d7
parent1607e566e2e21833fa1af57cdd6a716cdf94ee39
Fix resource leaks in pool_memqcache.c.

These leaks were brought in by commit 6fdba5c33 " Use psprintf()
instead of snprintf()."  Since the commit was backpatched through 4.1,
this needs to be backpatched through 4.1 too.

Per Coverity (CID 1559726).
Backpatch-through: 4.1.
src/query_cache/pool_memqcache.c