]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: Stop checking the pointer before calling `tasklet_free()`
authorTim Duesterhus <tim@bastelstu.be>
Sat, 22 Apr 2023 15:47:32 +0000 (17:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2023 22:28:25 +0000 (00:28 +0200)
commitb1ec21d259c72559e2d170a09efc059d9fc58347
tree816dcc48e096a71df54a966c44f92a8514295e94
parent3a8c63d48d45cc18b68ab85f1237632e6f4c4f46
CLEANUP: Stop checking the pointer before calling `tasklet_free()`

Changes performed with this Coccinelle patch:

    @@
    expression e;
    @@

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

    @@
    expression e;
    @@

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

    @@
    expression e;
    @@

    - if (e)
     tasklet_free(e);

    @@
    expression e;
    @@

    - if (e != NULL)
     tasklet_free(e);

See GitHub Issue #2126
src/event_hdl.c
src/listener.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/mux_quic.c
src/quic_conn.c
src/stconn.c