summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-04-28 17:46:13 +0200
committerDamjan Marion <dmarion@me.com>2022-04-29 16:02:43 +0000
commit16ca1a9856f6f7abe4cbd3660da2cc1fabc1aa27 (patch)
tree25735fab108f0973a254acf3273a67f1899ffd85 /src
parent687cf6faf29af9ae683965b09d4648fd60f786af (diff)
vppinfra: fix clib_mem_destroy
Passing wrong pointer to clib_mem_vm_unmap... Type: fix Change-Id: I1f695d77bc45d9a6de3a4a3da1fbe6faebdad15e Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/mem_dlmalloc.c3
1 files changed, 1 insertions, 2 deletions
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 *