]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task: always reset curr_task when freeing a task or tasklet
authorWilly Tarreau <w@1wt.eu>
Fri, 17 May 2019 12:16:51 +0000 (14:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 May 2019 15:16:20 +0000 (17:16 +0200)
commit29bf96d73dc7d369cde0d668e24c94f703c0ad32
tree6ad21e3ab8bda8b924fe60aca21c3ecba11ab27e
parent01f3489752ec6ab4279fe975af0053c75a2a56fc
MINOR: task: always reset curr_task when freeing a task or tasklet

With the thread debugger it becomes visible that we can leave some
wandering pointers for a while in curr_task, which is inappropriate.
This patch addresses this by resetting curr_task to NULL before really
freeing the area. This way it becomes safe even regarding signals.
include/proto/task.h