]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/mfree_return.cocci
nspawn: rework how /run/host/ is set up
[thirdparty/systemd.git] / coccinelle / mfree_return.cocci
1 @@
2 /* Avoid running this transformation on the mfree function itself */
3 position p : script:python() { p[0].current_element != "mfree" };
4 expression e;
5 @@
6 - free@p(e);
7 - return NULL;
8 + return mfree(e);