commit | d941146583c0e48916f8117494ff97d74cbfd20c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Apr 27 17:55:41 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Apr 27 17:55:41 2022 +0200 |
tree | a5516716305fc8f9b3474549dacec2756aebf280 | |
parent | 032e700e8bd1cd947d1cb7028b0dda102419cbdd [diff] |
CLEANUP: chunks: release trash also in deinit Tim reported in issue #1676 that just like startup_logs, trash buffers are not released on deinit since they're thread-local, but valgrind notices it when quitting before creating threads like "-c -f ...". Let's just subscribe the function to deinit in addition to threads' end. The two "free(x);x=NULL;" in free_trash_buffers_per_thread() were also simplified using ha_free().