mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fix type of parameter passed by malloc_consolidate
atomic_exchange_acq() expected a pointer, but was receiving an integer.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user