Rivoreo Source Code Repositories
src.rivoreo.one
/
security
/
mbedtls
/
e19acd5e79e32533aa87da8dd94e758de07eb26c
/
.
/
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