]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bfdd: Use XFREE, clean up SA warning for bfd profiles
authorMark Stapp <mjs@voltanet.io>
Fri, 3 Jul 2020 15:43:00 +0000 (11:43 -0400)
committerMark Stapp <mjs@voltanet.io>
Fri, 3 Jul 2020 15:50:34 +0000 (11:50 -0400)
Use XFREE instead of raw free, clean up SA warning in bfd
profile delete.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
bfdd/bfd.c

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