PERFORCE change 132138 for review
John Birrell
jb at FreeBSD.org
Sun Dec 30 17:28:36 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=132138
Change 132138 by jb at jb_freebsd1 on 2007/12/31 01:28:01
Need to use a kmem_free now that these allocations were made with
the kmem implemntation in the opensolaris module. Using the wrong
memory identifier ends in tears.
Affected files ...
.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_unload.c#17 edit
Differences ...
==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_unload.c#17 (text+ko) ====
@@ -108,7 +108,7 @@
}
if (dtrace_probes != NULL) {
- free(dtrace_probes, M_DTRACE);
+ kmem_free(dtrace_probes, 0);
dtrace_probes = NULL;
dtrace_nprobes = 0;
}
@@ -125,7 +125,7 @@
vmem_destroy(dtrace_arena);
if (dtrace_toxrange != NULL) {
- free(dtrace_toxrange, M_DTRACE);
+ kmem_free(dtrace_toxrange, 0);
dtrace_toxrange = NULL;
dtrace_toxranges = 0;
dtrace_toxranges_max = 0;
More information about the p4-projects
mailing list