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