Sign in
pigweed
/
third_party
/
github
/
ARMmbed
/
mbedtls
/
f442de69ebb3aa5db2d642382a0b7b9604937ef3
/
.
/
scripts
/
find-mem-leak.cocci
blob: 8179e2b3ebd901e3d43a80f3312d1ecc315979a9 [
file
] [
log
] [
blame
]
@@
expression x
,
y
;
statement S
;
@@
x
=
mbedtls_calloc
(...);
y
=
mbedtls_calloc
(...);
...
*
if
(
x
==
NULL
||
y
==
NULL
)
S
@@
expression x
,
y
;
statement S
;
@@
if
(
*
(
x
=
mbedtls_calloc
(...))
==
NULL
||
*
(
y
=
mbedtls_calloc
(...))
==
NULL
)
S