1
0
mirror of https://github.com/git/git.git synced 2024-09-25 00:31:44 +02:00
git/contrib/coccinelle/free.cocci

19 lines
146 B
Plaintext
Raw Normal View History

@@
expression E;
@@
- if (E)
free(E);
@@
expression E;
@@
- if (!E)
free(E);
@@
expression E;
@@
- free(E);
+ FREE_AND_NULL(E);
- E = NULL;