mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 16:17:38 +00:00
ripd: use correct memory type when freeing BFD profile
Fixes #13415. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
bf384bbc90
commit
2da9c4c206
@ -13,6 +13,8 @@
|
||||
#include "ripd/rip_bfd.h"
|
||||
#include "ripd/rip_debug.h"
|
||||
|
||||
DEFINE_MTYPE(RIPD, RIP_BFD_PROFILE, "RIP BFD profile name");
|
||||
|
||||
extern struct zclient *zclient;
|
||||
|
||||
static const char *rip_bfd_interface_profile(struct rip_interface *ri)
|
||||
|
@ -9,6 +9,8 @@
|
||||
|
||||
#include "frrevent.h"
|
||||
|
||||
DECLARE_MTYPE(RIP_BFD_PROFILE);
|
||||
|
||||
struct rip;
|
||||
struct rip_interface;
|
||||
struct rip_peer;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "zebra/connected.h"
|
||||
|
||||
#include "ripd/ripd.h"
|
||||
#include "ripd/rip_bfd.h"
|
||||
#include "ripd/rip_debug.h"
|
||||
#include "ripd/rip_interface.h"
|
||||
|
||||
@ -457,7 +458,7 @@ static void rip_interface_reset(struct rip_interface *ri)
|
||||
ri->sent_updates = 0;
|
||||
|
||||
ri->passive = 0;
|
||||
XFREE(MTYPE_TMP, ri->bfd.profile);
|
||||
XFREE(MTYPE_RIP_BFD_PROFILE, ri->bfd.profile);
|
||||
|
||||
rip_interface_clean(ri);
|
||||
}
|
||||
|
@ -25,8 +25,6 @@
|
||||
#include "ripd/rip_interface.h"
|
||||
#include "ripd/rip_bfd.h"
|
||||
|
||||
DEFINE_MTYPE_STATIC(RIPD, RIP_BFD_PROFILE, "RIP BFD profile name");
|
||||
|
||||
/*
|
||||
* XPath: /frr-ripd:ripd/instance
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user