summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_src.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6/in6_src.c')
-rw-r--r--sys/netinet6/in6_src.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c
index 7daa76ff7df2..1bb673d1653e 100644
--- a/sys/netinet6/in6_src.c
+++ b/sys/netinet6/in6_src.c
@@ -988,7 +988,7 @@ add_addrsel_policyent(struct in6_addrpolicy *newpolicy)
INIT_VNET_INET6(curvnet);
struct addrsel_policyent *new, *pol;
- MALLOC(new, struct addrsel_policyent *, sizeof(*new), M_IFADDR,
+ new = malloc(sizeof(*new), M_IFADDR,
M_WAITOK);
ADDRSEL_XLOCK();
ADDRSEL_LOCK();
@@ -1001,7 +1001,7 @@ add_addrsel_policyent(struct in6_addrpolicy *newpolicy)
&pol->ape_policy.addrmask.sin6_addr)) {
ADDRSEL_UNLOCK();
ADDRSEL_XUNLOCK();
- FREE(new, M_IFADDR);
+ free(new, M_IFADDR);
return (EEXIST); /* or override it? */
}
}