Fix a memory leak in the error path of rde_dump_ctx_new.
authormbuhl <mbuhl@openbsd.org>
Mon, 7 Nov 2022 22:48:35 +0000 (22:48 +0000)
committermbuhl <mbuhl@openbsd.org>
Mon, 7 Nov 2022 22:48:35 +0000 (22:48 +0000)
commit4198415dbfecee63a5322eb7c58f5cc5cb196b95
treec7cc083cc301b19f0e8f27ecab43e6eb6f736cd7
parentbac832a5c25e7e4a37aa8aea7c96172ce7a7d681
Fix a memory leak in the error path of rde_dump_ctx_new.
ctx is leaked in case of an allocation in prefix_dump_new,
prefix_dump_subtree, rib_dump_new, or rib_dump_subtree fails.

Found by CodeChecker.

OK claudio@
usr.sbin/bgpd/rde.c