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:52:49 +0000 (22:52 +0900)
commitb9b2b6edfb7a1b215c2a52b3db90695b6258145f
tree82fabe05c3ea0de4c0d758ec2eaca3278c64a152
parent990583a70210eb16de87a6c129592db6d8b6776a
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