pgsql: Fix memory leak in BufFileCreateShared(). - Mailing list pgsql-committers

From Tatsuo Ishii
Subject pgsql: Fix memory leak in BufFileCreateShared().
Date
Msg-id E1fU3x9-0002D3-DX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1cfdb1cb0e3f0acd0fac11537410c48dfd6d9075

Modified Files
--------------
src/backend/storage/file/buffile.c | 53 ++++++++++++++++----------------------
1 file changed, 22 insertions(+), 31 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Fix off-by-one bug in XactLogCommitRecord
Next
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Fix memory leak in PLySequence_ToJsonbValue()