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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Andres Freund
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@...
Backpatch: 9.5, where rm_identify was introduced

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/95f2efd5041b95cb92e3940e79cbbb65c4c4b09e

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