summaryrefslogtreecommitdiffstats
path: root/dev/coccinelle/realloc_leak.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'dev/coccinelle/realloc_leak.cocci')
-rw-r--r--dev/coccinelle/realloc_leak.cocci6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/coccinelle/realloc_leak.cocci b/dev/coccinelle/realloc_leak.cocci
new file mode 100644
index 0000000..c201b80
--- /dev/null
+++ b/dev/coccinelle/realloc_leak.cocci
@@ -0,0 +1,6 @@
+@@
+expression E;
+expression F;
+@@
+
+* E = realloc(E, F);