summaryrefslogtreecommitdiffstats
path: root/contrib/coccinelle/tests/free.res
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/coccinelle/tests/free.res')
-rw-r--r--contrib/coccinelle/tests/free.res9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/coccinelle/tests/free.res b/contrib/coccinelle/tests/free.res
new file mode 100644
index 0000000..f90fd9f
--- /dev/null
+++ b/contrib/coccinelle/tests/free.res
@@ -0,0 +1,9 @@
+int use_FREE_AND_NULL(int *v)
+{
+ FREE_AND_NULL(*v);
+}
+
+int need_no_if(int *v)
+{
+ free(v);
+}