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:20:03 +0000 (19:20 +0900)
commit96f2f9e0b240570459057e04e4a1ffa7e5bddd10
tree8098fd5f23ef60841674254e5c18740f130f730a
parent8ce32bc4371ca2a0f1b5ed3b13526553b98adda9
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