pgsql: Fix minor memory leak in Standby startup

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix minor memory leak in Standby startup
Date: 2016-09-08 10:16:34
Message-ID: E1bhwNm-0007He-3s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix minor memory leak in Standby startup

StandbyRecoverPreparedTransactions() leaked the buffer
used for two phase state file. This was leaked once
at startup and at every shutdown checkpoint seen.

Backpatch to 9.6

Stas Kelvich

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/67c6bd1ca3ce75778138bf4713444a5a6b46032e

Modified Files
--------------
src/backend/access/transam/twophase.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2016-09-08 10:20:45 pgsql: Fix minor memory leak in Standby startup
Previous Message Simon Riggs 2016-09-08 09:18:24 Re: [COMMITTERS] pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL