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

Changes performed with this Coccinelle patch:

    @@
    expression e;
    @@

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

    @@
    expression e;
    @@

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

    @@
    expression e;
    @@

    - if (e)
     ring_free(e);

    @@
    expression e;
    @@

    - if (e != NULL)
     ring_free(e);
src/dns.c
src/resolvers.c
src/sink.c