Add a rule for another type of memory leak to find-mem-leak.cocci.
This commit is contained in:
parent
f81088bb80
commit
263438b071
1 changed files with 11 additions and 0 deletions
|
@ -7,3 +7,14 @@ statement S;
|
||||||
...
|
...
|
||||||
* if (x == NULL || y == NULL)
|
* if (x == NULL || y == NULL)
|
||||||
S
|
S
|
||||||
|
|
||||||
|
@@
|
||||||
|
expression x, y;
|
||||||
|
statement S;
|
||||||
|
@@
|
||||||
|
if (
|
||||||
|
* (x = polarssl_malloc(...)) == NULL
|
||||||
|
||
|
||||||
|
* (y = polarssl_malloc(...)) == NULL
|
||||||
|
)
|
||||||
|
S
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue