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