systemd/coccinelle/mfree.cocci
Lennart Poettering a1e58e8ee1 tree-wide: use coccinelle to patch a lot of code to use mfree()
This replaces this:

        free(p);
        p = NULL;

by this:

        p = mfree(p);

Change generated using coccinelle. Semantic patch is added to the
sources.
2015-09-09 08:19:27 +02:00

6 lines
59 B
Text

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