diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-10-16 18:28:30 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-10-16 23:35:39 -0400 |
commit | 6b430fdb7c0c2c52ea69a7d56f23d739218b13d0 (patch) | |
tree | 5ddb3975a8146fbee7c114e41a967e2abf9caa11 /coccinelle | |
parent | shared/install: use _cleanup_free_ (diff) | |
download | systemd-6b430fdb7c0c2c52ea69a7d56f23d739218b13d0.tar.gz systemd-6b430fdb7c0c2c52ea69a7d56f23d739218b13d0.tar.bz2 systemd-6b430fdb7c0c2c52ea69a7d56f23d739218b13d0.zip |
tree-wide: use mfree more
Diffstat (limited to 'coccinelle')
-rw-r--r-- | coccinelle/mfree_return.cocci | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coccinelle/mfree_return.cocci b/coccinelle/mfree_return.cocci new file mode 100644 index 000000000..8119fe07f --- /dev/null +++ b/coccinelle/mfree_return.cocci @@ -0,0 +1,6 @@ +@@ +expression p; +@@ +- free(p); +- return NULL; ++ return mfree(p); |