summaryrefslogtreecommitdiffstats
path: root/coccinelle/mfree_return.cocci
blob: 15e6c7d566bd08281e841892b3383500871da64f (plain)
1
2
3
4
5
6
7
8
@@
/* Avoid running this transformation on the mfree function itself */
position p : script:python() { p[0].current_element != "mfree" };
expression e;
@@
- free@p(e);
- return NULL;
+ return mfree(e);