Skip to content

Commit

Permalink
Fix resource leaks in pool_memqcache.c.
Browse files Browse the repository at this point in the history
These leaks were brought in by commit 6fdba5c " 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.
  • Loading branch information
tatsuo-ishii committed Sep 14, 2024
1 parent 990583a commit b9b2b6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/query_cache/pool_memqcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b9b2b6e

Please sign in to comment.