mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-20 21:31:28 +02:00
DEV: coccinelle: Add ha_free.cocci
Taken from 61cfdf4fd8a93dc6fd9922d5b309a71bdc7d2853.
This commit is contained in:
parent
785b84bb8f
commit
cc17a6e1d3
6
dev/coccinelle/ha_free.cocci
Normal file
6
dev/coccinelle/ha_free.cocci
Normal file
@ -0,0 +1,6 @@
|
||||
@ rule @
|
||||
expression E;
|
||||
@@
|
||||
- free(E);
|
||||
- E = NULL;
|
||||
+ ha_free(&E);
|
Loading…
x
Reference in New Issue
Block a user