commit | f9eba78fb82a9ccca2503e318a79be4d7db8d94d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Mar 03 18:31:54 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Mar 03 18:42:49 2022 +0100 |
tree | e227355b82ba7278e5c8025a238c562005efe780 | |
parent | 2d0f873cd8011edd819d3192c9fc3723f732b85e [diff] |
BUG/MEDIUM: pools: fix ha_free() on area in the process of being freed Commit e81248c0c ("BUG/MINOR: pool: always align pool_heads to 64 bytes") added a free of the allocated pool in pool_destroy() using ha_free(), but it added a subtle bug by which once the pool is released, setting its address to NULL inside the structure itself cannot work because the area has just been freed. This will need to be backported wherever the patch above is backported.