pgsql: pg_waldump: Fix small memory leak when rmgr->rm_identify returns

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_waldump: Fix small memory leak when rmgr->rm_identify returns
Date: 2019-10-30 02:48:40
Message-ID: E1iPe2K-0008V9-RM@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_waldump: Fix small memory leak when rmgr->rm_identify returns NULL.

This got broken in 604f7956b94, shortly after rm_identify's
introduction.

Author: Andres Freund
Discussion: https://postgr.es/m/20191029233341.4gnyau7e5v2lh5sc@alap3.anarazel.de
Backpatch: 9.5, where rm_identify was introduced

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4ab353c477e6f585973b171a2652551574cbbc45

Modified Files
--------------
src/bin/pg_waldump/pg_waldump.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2019-10-30 02:48:43 pgsql: pg_waldump: Fix small memory leak when rmgr->rm_identify returns
Previous Message Andres Freund 2019-10-30 02:48:38 pgsql: pg_waldump: Fix small memory leak when rmgr->rm_identify returns