source:
ps/trunk/build/premake/premake5/contrib/mbedtls/scripts/find-mem-leak.cocci
| Last change on this file was 20366, checked in by , 7 years ago | |
|---|---|
| File size: 269 bytes | |
| Line | |
|---|---|
| 1 | @@ |
| 2 | expression x, y; |
| 3 | statement S; |
| 4 | @@ |
| 5 | x = mbedtls_malloc(...); |
| 6 | y = mbedtls_malloc(...); |
| 7 | ... |
| 8 | * if (x == NULL || y == NULL) |
| 9 | S |
| 10 | |
| 11 | @@ |
| 12 | expression x, y; |
| 13 | statement S; |
| 14 | @@ |
| 15 | if ( |
| 16 | * (x = mbedtls_malloc(...)) == NULL |
| 17 | || |
| 18 | * (y = mbedtls_malloc(...)) == NULL |
| 19 | ) |
| 20 | S |
Note:
See TracBrowser
for help on using the repository browser.
