BUG/MINOR: lua: always detach the tcp/http tasks before freeing them
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Jul 2017 15:35:27 +0000 (17:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Jul 2017 15:35:27 +0000 (17:35 +0200)
commitbd7fc95edbce821f1d7b745a7b75deef4d6b1e27
tree3f15b788c87ec06afa6500d339f7da8624db29cd
parentd02210cd30dad77711e58857e610cd9bd71c49ff
BUG/MINOR: lua: always detach the tcp/http tasks before freeing them

In hlua_{http,tcp}_applet_release(), a call to task_free() is performed
to release the task, but no task_delete() is made on these tasks. Till
now it wasn't much of a problem because this was normally not done with
the task in the run queue, and the task was never put into the wait queue
since it doesn't have any timer. But with threading it will become an
issue. And not having this already prevents another bug from being fixed.

Thanks to Christopher for spotting this one. A backport to 1.7 and 1.6 is
preferred for safety.
src/hlua.c