Free memory after deleting an address policy entry.

MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2013-04-12 07:59:54 +00:00
parent 5a121e478c
commit ecc5c7387b

View File

@ -1100,6 +1100,7 @@ delete_addrsel_policyent(struct in6_addrpolicy *key)
TAILQ_REMOVE(&V_addrsel_policytab, pol, ape_entry);
ADDRSEL_UNLOCK();
ADDRSEL_XUNLOCK();
free(pol, M_IFADDR);
return (0);
}