]> git.ipfire.org Git - thirdparty/glibc.git/commit
aio: Fix freeing memory
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 11 Apr 2023 22:12:02 +0000 (00:12 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 20 Jul 2024 18:52:40 +0000 (20:52 +0200)
commite47b88d2fb0c740f7ff87fc50a3d299e8396db4f
tree0687ca313907acb6b8a5869f8ff2a3a482ef0296
parentf908fa07c6cde14f1e6247476776c2bf3e901e91
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.

(cherry picked from commit 0cee4aa92f5b9b213856c8ba1ab84c34d73c943b)
rt/aio_misc.c