From bb6dbcf3b2a0d48c5fc4d87972a640bdeccff1ea Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 10 Jan 2001 07:13:58 +0000 Subject: Fix some memory leaks Add memory leak detection assitance. --- sys/netgraph/ng_lmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/netgraph/ng_lmi.c') diff --git a/sys/netgraph/ng_lmi.c b/sys/netgraph/ng_lmi.c index 7a8ea4a..4521d74 100644 --- a/sys/netgraph/ng_lmi.c +++ b/sys/netgraph/ng_lmi.c @@ -329,9 +329,7 @@ nglmi_inquire(sc_p sc, int full) m->m_pkthdr.rcvif = NULL; /* Allocate a meta struct (and leave some slop for options to be * added by other modules). */ - /* MALLOC(meta, meta_p, sizeof( struct ng_meta) + META_PAD, - * M_NETGRAPH, M_NOWAIT); */ - MALLOC(meta, meta_p, sizeof(*meta) + META_PAD, M_NETGRAPH, M_NOWAIT); + MALLOC(meta, meta_p, sizeof(*meta) + META_PAD, M_NETGRAPH_META, M_NOWAIT); if (meta != NULL) { /* if it failed, well, it was optional anyhow */ meta->used_len = (u_short) sizeof(struct ng_meta); meta->allocated_len -- cgit v1.1