mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-23 00:57:56 +00:00
Add a semantic patch to find potential memory leaks.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@@
|
||||
expression x, y;
|
||||
statement S;
|
||||
@@
|
||||
x = polarssl_malloc(...);
|
||||
y = polarssl_malloc(...);
|
||||
...
|
||||
* if (x == NULL || y == NULL)
|
||||
S
|
||||
Reference in New Issue
Block a user