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

Andres Freund <andres@anarazel.de>

Commit: af67aee69189c59bd3076b472f959a16e6193828
Author: Andres Freund <andres@anarazel.de>
Date: 2019-10-30T02:28:34Z
Releases: 11.6
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

Files

PathChange+/−
src/bin/pg_waldump/pg_waldump.c modified +6 −5

Discussion