CLEANUP: task: only perform a LIST_DEL() when the list is not empty
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2019 17:10:53 +0000 (18:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2019 17:10:53 +0000 (18:10 +0100)
commita33d39a1b15459ac34b4228b2510eba97a4f0c85
tree77577625ef7834fb145228cf3fddef96f331457d
parente73256fd2a49a4a0623add6dfb07c7edc102eeb6
CLEANUP: task: only perform a LIST_DEL() when the list is not empty

In tasklet_free() we unconditionally perform a LIST_DEL() even when
the list is empty, let's move the LIST_DEL() inside the matching block.
include/proto/task.h