Fix memory leak in BufFileCreateShared().

Tatsuo Ishii <ishii@postgresql.org>

Commit: 1cfdb1cb0e3f0acd0fac11537410c48dfd6d9075
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2018-06-16T05:21:08Z
Releases: 11.0
Fix memory leak in BufFileCreateShared().

Also this commit unifies some duplicated code in makeBufFile() and
BufFileOpenShared() into new function makeBufFileCommon().

Author: Antonin Houska
Reviewed-By: Thomas Munro, Tatsuo Ishii
Discussion: https://postgr.es/m/16139.1529049566%40localhost

Files

PathChange+/−
src/backend/storage/file/buffile.c modified +22 −31

Discussion