From 16ca1a9856f6f7abe4cbd3660da2cc1fabc1aa27 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 28 Apr 2022 17:46:13 +0200 Subject: vppinfra: fix clib_mem_destroy Passing wrong pointer to clib_mem_vm_unmap... Type: fix Change-Id: I1f695d77bc45d9a6de3a4a3da1fbe6faebdad15e Signed-off-by: Damjan Marion --- src/vppinfra/mem_dlmalloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/mem_dlmalloc.c b/src/vppinfra/mem_dlmalloc.c index 4150fbe8b4b..ffffec8e441 100644 --- a/src/vppinfra/mem_dlmalloc.c +++ b/src/vppinfra/mem_dlmalloc.c @@ -287,13 +287,12 @@ clib_mem_destroy (void) { mheap_trace_main_t *tm = &mheap_trace_main; clib_mem_heap_t *heap = clib_mem_get_heap (); - void *base = mspace_least_addr (heap->mspace); if (tm->enabled && heap->mspace == tm->current_traced_mheap) tm->enabled = 0; destroy_mspace (heap->mspace); - clib_mem_vm_unmap (base); + clib_mem_vm_unmap (heap); } __clib_export u8 * -- cgit 1.2.3-korg