From b43f552a8a23c0e405ab13a268bee12ada3b7841 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Fri, 11 Mar 2016 16:57:38 -0300 Subject: Fix type of parameter passed by malloc_consolidate atomic_exchange_acq() expected a pointer, but was receiving an integer. --- malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc') diff --git a/malloc/malloc.c b/malloc/malloc.c index b8a43bfb32..1eed79414c 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4150,7 +4150,7 @@ static void malloc_consolidate(mstate av) maxfb = &fastbin (av, NFASTBINS - 1); fb = &fastbin (av, 0); do { - p = atomic_exchange_acq (fb, 0); + p = atomic_exchange_acq (fb, NULL); if (p != 0) { do { check_inuse_chunk(av, p); -- cgit v1.2.3-70-g09d2