]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasks: Make sure we correctly init and deinit a tasklet.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 8 Jun 2018 15:08:19 +0000 (17:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Jun 2018 16:57:13 +0000 (18:57 +0200)
commitdcd6f3a597b274581953eb04c300b7fea5bcae4f
tree109d2d5a38ff23808dbbeaeab87e3e6d25446788
parentfd9655c54dc504f75afea9c45b3a34ffaba73db4
MINOR: tasks: Make sure we correctly init and deinit a tasklet.

Up until now, a tasklet couldn't be free'd while it was in the list, it is
no longer the case, so make sure we remove it from the list before freeing it.
To do so, we have to make sure we correctly initialize it, so use LIST_INIT,
instead of setting the pointers to NULL.
include/proto/task.h