about summary refs log tree commit diff
path: root/third_party/git/contrib/coccinelle/free.cocci
@@
expression E;
@@
- if (E)
  free(E);

@@
expression E;
@@
- if (!E)
  free(E);

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