pgsql: Fix memory leak in BufFileCreateShared().

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix memory leak in BufFileCreateShared().
Date: 2018-06-16 05:40:47
Message-ID: E1fU3x9-0002D3-DX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-06-16 12:44:30 Re: pgsql: Fix memory leak in PLySequence_ToJsonbValue()
Previous Message Alvaro Herrera 2018-06-15 19:12:18 Re: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding