unlock and destroy an llentry's lock before freeing

Found by: sam
This commit is contained in:
Kip Macy 2008-12-16 00:20:49 +00:00
parent 8a61a4eec4
commit fbc2ca1bef
2 changed files with 4 additions and 0 deletions

View File

@ -1060,6 +1060,8 @@ in_lltable_new(const struct sockaddr *l3addr, u_int flags)
static void
in_lltable_free(struct lltable *llt, struct llentry *lle)
{
LLE_WUNLOCK(lle);
LLE_LOCK_DESTROY(lle);
free(lle, M_LLTABLE);
}

View File

@ -2115,6 +2115,8 @@ in6_lltable_new(const struct sockaddr *l3addr, u_int flags)
static void
in6_lltable_free(struct lltable *llt, struct llentry *lle)
{
LLE_WUNLOCK(lle);
LLE_LOCK_DESTROY(lle);
free(lle, M_LLTABLE);
}