diff options
| author | Paul Saab <ps@FreeBSD.org> | 2006-03-06 08:42:07 +0000 |
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2006-03-06 08:42:07 +0000 |
| commit | 4ff32caea4a4ffb49dbd4a3aeaff50f12b3162f9 (patch) | |
| tree | 18a73a6c4ed9c68a67288a9ad0a5fa2da91ed873 | |
| parent | 960db15e8adea1c41b52311a02043fa6accc9597 (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_malloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 4864277dd7d7..0a241ca94df9 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -610,6 +610,7 @@ malloc_uninit(void *data) struct malloc_type_internal *mtip; struct malloc_type_stats *mtsp; struct malloc_type *mtp, *temp; + uma_slab_t slab; long temp_allocs, temp_bytes; int i; @@ -646,7 +647,8 @@ malloc_uninit(void *data) temp_allocs, temp_bytes); } - uma_zfree(mt_zone, mtip); + slab = vtoslab((vm_offset_t) mtip & (~UMA_SLAB_MASK)); + uma_zfree_arg(mt_zone, mtip, slab); } static int |
