Tell bridgestp that we are about to free the memory so it can cleanup.

This commit is contained in:
Andrew Thompson 2006-08-02 02:59:24 +00:00
parent 516b37d308
commit fc5b6202ab

View File

@ -859,6 +859,9 @@ bridge_delete_member(struct bridge_softc *sc, struct bridge_iflist *bif,
bridge_rtdelete(sc, ifs, IFBF_FLUSHALL);
BRIDGE_UNLOCK(sc);
bstp_drain(&bif->bif_stp); /* prepare to free */
BRIDGE_LOCK(sc);
free(bif, M_DEVBUF);
}