mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
BUG/MEDIUM: threads: don't try to free build option message on exit
Commit 0493149 ("MINOR: thread: report multi-thread support in haproxy -vv") added information about thread support in haproxy -vv output but accidently marked the message as "must_free" while it's a constant. This causes a segv on the old process on clean exit if threads are enabled. It doesn't affect the stability during operations however.
This commit is contained in:
parent
bbd09b9306
commit
6dbd3e963b
@ -155,7 +155,7 @@ static void __hathreads_init(void)
|
|||||||
#if defined(DEBUG_THREAD) || defined(DEBUG_FULL)
|
#if defined(DEBUG_THREAD) || defined(DEBUG_FULL)
|
||||||
memset(lock_stats, 0, sizeof(lock_stats));
|
memset(lock_stats, 0, sizeof(lock_stats));
|
||||||
#endif
|
#endif
|
||||||
hap_register_build_opts("Built with multi-threading support.", 1);
|
hap_register_build_opts("Built with multi-threading support.", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user