Fix resource leaks in pool_memqcache.c.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 10 Sep 2024 10:20:03 +0000 (19:20 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 10 Sep 2024 10:26:15 +0000 (19:26 +0900)
commit77d30e38b7a2dfda8063d726acdac1fce1788e0c
tree8335deea078e04ed0d1955f7ed16ef86dfbd9fbe
parent54ccb32a3a09fb9984329562db430a96e7b8478c
Fix resource leaks in pool_memqcache.c.

6fdba5c33

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 1559736).
Backpatch-through: 4.1.
src/query_cache/pool_memqcache.c