2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00
bind/cocci/null-the-pointer-early.disabled
Ondřej Surý bc1d4c9cb4 Clear the pointer to destroyed object early using the semantic patch
Also disable the semantic patch as the code needs tweaks here and there because
some destroy functions might not destroy the object and return early if the
object is still in use.
2020-02-09 18:00:17 -08:00

22 lines
167 B
Plaintext

@@
type T;
T **PP;
T *P;
@@
P = *PP;
+ *PP = NULL;
...
- *PP = NULL;
@@
type T;
identifier PP;
identifier P;
@@
T *P = *PP;
+ *PP = NULL;
...
- *PP = NULL;