mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-09 12:40:57 +00:00
Add a rule for another type of memory leak to find-mem-leak.cocci.
This commit is contained in:
parent
f81088bb80
commit
263438b071
@ -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…
x
Reference in New Issue
Block a user