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