]> git.kaiwu.me - haproxy.git/commit
CLEANUP: chunks: release trash also in deinit
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Apr 2022 15:55:41 +0000 (17:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Apr 2022 15:55:41 +0000 (17:55 +0200)
commitd941146583c0e48916f8117494ff97d74cbfd20c
treea5516716305fc8f9b3474549dacec2756aebf280
parent032e700e8bd1cd947d1cb7028b0dda102419cbdd
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().
src/chunk.c