Skip to content

Commit

Permalink
eigrp: use correct memory pool on interface deletion
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Huti <[email protected]>
  • Loading branch information
Volodymyr Huti committed Oct 10, 2023
1 parent 03d1b44 commit 7a50124
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eigrpd/eigrp_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
#include "eigrpd/eigrp_types.h"
#include "eigrpd/eigrp_metric.h"

DEFINE_MTYPE_STATIC(EIGRPD, EIGRP_IF, "EIGRP interface");
DEFINE_MTYPE_STATIC(EIGRPD, EIGRP_IF_INFO, "EIGRP Interface Information");
DEFINE_MTYPE_STATIC(EIGRPD, EIGRP_IF, "EIGRP interface");

struct eigrp_interface *eigrp_if_new(struct eigrp *eigrp, struct interface *ifp,
struct prefix *p)
Expand Down Expand Up @@ -110,7 +109,7 @@ int eigrp_if_delete_hook(struct interface *ifp)

eigrp_fifo_free(ei->obuf);

XFREE(MTYPE_EIGRP_IF_INFO, ifp->info);
XFREE(MTYPE_EIGRP_IF, ifp->info);

return 0;
}
Expand Down

0 comments on commit 7a50124

Please sign in to comment.