systemd/coccinelle/mfree_return.cocci
Zbigniew Jędrzejewski-Szmek 6b430fdb7c tree-wide: use mfree more
2016-10-16 23:35:39 -04:00

7 lines
65 B
Plaintext

@@
expression p;
@@
- free(p);
- return NULL;
+ return mfree(p);