summaryrefslogtreecommitdiff
path: root/contrib/coccinelle/free.cocci
blob: c03ba737e5fafe63218c7023ce8bbd66c47f7dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
@@
expression E;
@@
- if (E)
  free(E);
 
@@
expression E;
@@
- if (!E)
  free(E);