diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index d12c0b6c75..7ea6ae586b 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -877,4 +877,5 @@ void bgp_dump_finish(void) stream_free(bgp_dump_obuf); bgp_dump_obuf = NULL; + hook_unregister(bgp_packet_dump, bgp_dump_packet); }