summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii2024-09-14 13:52:49 +0000
committerTatsuo Ishii2024-09-14 13:52:49 +0000
commitb9b2b6edfb7a1b215c2a52b3db90695b6258145f (patch)
tree82fabe05c3ea0de4c0d758ec2eaca3278c64a152 /src
parent990583a70210eb16de87a6c129592db6d8b6776a (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/query_cache/pool_memqcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/query_cache/pool_memqcache.c b/src/query_cache/pool_memqcache.c
index 58e5e9714..ad1501c0c 100644
--- a/src/query_cache/pool_memqcache.c
+++ b/src/query_cache/pool_memqcache.c
@@ -1743,6 +1743,7 @@ pool_add_table_oid_map(POOL_CACHEKEY * cachekey, int num_table_oids, int *table_
(errmsg("memcache: adding table oid maps, failed to write file:\"%s\"", path),
errdetail("%m")));
close(fd);
+ pfree(path);
return;
}
close(fd);