CLEANUP: Stop checking the pointer before calling `task_free()`
authorTim Duesterhus <tim@bastelstu.be>
Sat, 22 Apr 2023 15:47:34 +0000 (17:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2023 22:28:25 +0000 (00:28 +0200)
commitfe83f589068d8cd90ea63fabadd60408ae80cce1
tree7534e1fc00388960ce9a4b14bd22f98fd1d23fe0
parentc18e244515cdf860a3be59f0fc5622b8294099e7
CLEANUP: Stop checking the pointer before calling `task_free()`

Changes performed with this Coccinelle patch:

    @@
    expression e;
    @@

    - if (e != NULL) {
     task_destroy(e);
    - }

    @@
    expression e;
    @@

    - if (e) {
     task_destroy(e);
    - }

    @@
    expression e;
    @@

    - if (e)
     task_destroy(e);

    @@
    expression e;
    @@

    - if (e != NULL)
     task_destroy(e);
src/connection.c
src/dns.c
src/hlua.c
src/mworker.c
src/resolvers.c