Rivoreo Source Code Repositories
src.rivoreo.one
/
security
/
mbedtls
/
ca878dbaa51b025c83c138956ab52f82e319dd02
/
.
/
scripts
/
find-mem-leak.cocci
blob: 34cfd082d25b9f2e6e291e98dea557901ab0b250 [
file
] [
log
] [
blame
] [
raw
]
@@
expression x
,
y
;
statement S
;
@@
x
=
polarssl_malloc
(...);
y
=
polarssl_malloc
(...);
...
*
if
(
x
==
NULL
||
y
==
NULL
)
S
@@
expression x
,
y
;
statement S
;
@@
if
(
*
(
x
=
polarssl_malloc
(...))
==
NULL
||
*
(
y
=
polarssl_malloc
(...))
==
NULL
)
S