mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:05:42 +01: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)
|
||||
S
|
||||
|
||||
@@
|
||||
expression x, y;
|
||||
statement S;
|
||||
@@
|
||||
if (
|
||||
* (x = polarssl_malloc(...)) == NULL
|
||||
||
|
||||
* (y = polarssl_malloc(...)) == NULL
|
||||
)
|
||||
S
|
||||
|
Loading…
Reference in New Issue
Block a user