Commit 263438b0 authored by Mansour Moufid's avatar Mansour Moufid
Browse files

Add a rule for another type of memory leak to find-mem-leak.cocci.

parent f81088bb
......@@ -7,3 +7,14 @@ statement S;
...
* if (x == NULL || y == NULL)
S
@@
expression x, y;
statement S;
@@
if (
* (x = polarssl_malloc(...)) == NULL
||
* (y = polarssl_malloc(...)) == NULL
)
S
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment