Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / mbedtls / repo / scripts / find-mem-leak.cocci
1 @@
2 expression x, y;
3 statement S;
4 @@
5   x = mbedtls_calloc(...);
6   y = mbedtls_calloc(...);
7   ...
8 * if (x == NULL || y == NULL)
9     S
10
11 @@
12 expression x, y;
13 statement S;
14 @@
15   if (
16 *   (x = mbedtls_calloc(...)) == NULL
17     ||
18 *   (y = mbedtls_calloc(...)) == NULL
19   )
20     S