commit | cc17a6e1d3e6a0d4b7722cac47a7b53449a23d25 | [log] [tgz] |
---|---|---|
author | Tim Duesterhus <tim@bastelstu.be> | Thu Nov 04 21:03:51 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Nov 05 07:48:38 2021 +0100 |
tree | aee5a6ec840edc7b720266b693b2f88e12e04947 | |
parent | 785b84bb8fe6041d5aa880b1f20bc13a2a43c6f3 [diff] |
DEV: coccinelle: Add ha_free.cocci Taken from 61cfdf4fd8a93dc6fd9922d5b309a71bdc7d2853.
diff --git a/dev/coccinelle/ha_free.cocci b/dev/coccinelle/ha_free.cocci new file mode 100644 index 0000000..0019039 --- /dev/null +++ b/dev/coccinelle/ha_free.cocci
@@ -0,0 +1,6 @@ +@ rule @ +expression E; +@@ +- free(E); +- E = NULL; ++ ha_free(&E);