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 | d7604756ca5888350d5ed4ab6867baa967b24299 (diff) | |
download | systemd-6b430fdb7c0c2c52ea69a7d56f23d739218b13d0.tar.gz |
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 0000000000..8119fe07f2 --- /dev/null +++ b/coccinelle/mfree_return.cocci @@ -0,0 +1,6 @@ +@@ +expression p; +@@ +- free(p); +- return NULL; ++ return mfree(p); |