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