DEV: coccinelle: Add ha_free.cocci

Taken from 61cfdf4fd8.
This commit is contained in:
Tim Duesterhus 2021-11-04 21:03:51 +01:00 committed by Willy Tarreau
parent 785b84bb8f
commit cc17a6e1d3
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
@ rule @
expression E;
@@
- free(E);
- E = NULL;
+ ha_free(&E);