pg_waldump: Fix small memory leak when rmgr->rm_identify returns NULL.
authorAndres Freund <andres@anarazel.de>
Wed, 30 Oct 2019 02:18:07 +0000 (19:18 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 30 Oct 2019 02:28:34 +0000 (19:28 -0700)
commitc3882f8b894abd3a626272b4b58e114f3e282982
tree599409de0424f92dec928d6d81ca9fb3b931dc5e
parent7fc50a8a76c048ad715840ee39cbf4ff26d2d357
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: http://postgr.es/m/20191029233341.4gnyau7e5v2lh5sc@alap3.anarazel.de
Backpatch: 9.5, where rm_identify was introduced
src/bin/pg_xlogdump/pg_xlogdump.c