diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2015-12-02 10:33:16 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2015-12-02 10:33:16 +0000 |
commit | be755af757b311b39c0e711aff10875809e2d00c (patch) | |
tree | 87b00b3414007fcf2db8599fd846273bdb5a3e3a | |
parent | d4fbea8eccb7c2166ba78e5bd924b28f578f827d (diff) |
allocate route labels as M_RTABLE instead of M_TEMP
ok claudio@, mpi@
-rw-r--r-- | sys/net/route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 379ecf65289..423909af124 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.279 2015/12/02 09:17:47 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.280 2015/12/02 10:33:15 blambert Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1575,7 +1575,7 @@ rtlabel_name2id(char *name) if (new_id > LABELID_MAX) return (0); - label = malloc(sizeof(*label), M_TEMP, M_NOWAIT|M_ZERO); + label = malloc(sizeof(*label), M_RTABLE, M_NOWAIT|M_ZERO); if (label == NULL) return (0); strlcpy(label->rtl_name, name, sizeof(label->rtl_name)); @@ -1631,7 +1631,7 @@ rtlabel_unref(u_int16_t id) if (id == p->rtl_id) { if (--p->rtl_ref == 0) { TAILQ_REMOVE(&rt_labels, p, rtl_entry); - free(p, M_TEMP, sizeof(*p)); + free(p, M_RTABLE, sizeof(*p)); } break; } |