unlock and destroy an llentry's lock before freeing
Found by: sam
This commit is contained in:
parent
8a61a4eec4
commit
fbc2ca1bef
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user