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:55:02 +0000 (22:55 +0900)
commitd69efa1fe665498b85c0ea3f0a49d2f3d03a6057
tree9e8589666400bed77b23911bd38bb72842010665
parent15a44d04c077c0efff88fec75c076aae6dcaa1a7
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