mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
aio: Fix freeing memory
The content of the pool array is initialized only until pool_size, pointers between pool_size and pool_max_size were not initialized by the realloc call in get_elem so they should not be freed. This fixes aio tests crashing at their termination on GNU/Hurd.
This commit is contained in:
parent
5473a1747a
commit
0cee4aa92f
@ -702,7 +702,7 @@ __aio_freemem (void)
|
||||
{
|
||||
size_t row;
|
||||
|
||||
for (row = 0; row < pool_max_size; ++row)
|
||||
for (row = 0; row < pool_size; ++row)
|
||||
free (pool[row]);
|
||||
|
||||
free (pool);
|
||||
|
Loading…
Reference in New Issue
Block a user