Fix instance where variable was being shadowed by using a new name. Signed-off-by: Stephen Hemminger <step...@networkplumber.org> --- lib/eal/common/malloc_heap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/eal/common/malloc_heap.c b/lib/eal/common/malloc_heap.c index 13a56e490e..602266fba0 100644 --- a/lib/eal/common/malloc_heap.c +++ b/lib/eal/common/malloc_heap.c @@ -1044,7 +1044,7 @@ malloc_heap_free(struct malloc_elem *elem) /* if we unmapped some memory, we need to do additional work for ASan */ if (unmapped) { void *asan_end = RTE_PTR_ADD(asan_ptr, asan_data_len); - void *aligned_end = RTE_PTR_ADD(aligned_start, aligned_len); + void *asan_aligned = RTE_PTR_ADD(aligned_start, aligned_len); void *aligned_trailer = RTE_PTR_SUB(aligned_start, MALLOC_ELEM_TRAILER_LEN); @@ -1064,8 +1064,8 @@ malloc_heap_free(struct malloc_elem *elem) * unmapped space that was marked as freezone for ASan, we need * to mark the malloc header as available. */ - if (asan_end > aligned_end) - asan_set_zone(aligned_end, MALLOC_ELEM_HEADER_LEN, 0x00); + if (asan_end > asan_aligned) + asan_set_zone(asan_aligned, MALLOC_ELEM_HEADER_LEN, 0x00); /* if there's space before unmapped memory, mark as available */ if (asan_ptr < aligned_start) -- 2.47.2