bfdd: Use XFREE, clean up SA warning for bfd profiles

Use XFREE instead of raw free, clean up SA warning in bfd
profile delete.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2020-07-03 11:43:00 -04:00
parent d0e2053724
commit dd8bc21d2f

View File

@ -120,7 +120,8 @@ void bfd_profile_free(struct bfd_profile *bp)
/* Remove from global list. */ /* Remove from global list. */
TAILQ_REMOVE(&bplist, bp, entry); TAILQ_REMOVE(&bplist, bp, entry);
free(bp);
XFREE(MTYPE_BFDD_PROFILE, bp);
} }
/** /**