mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 10:10:06 +00:00
Add spatch to replace isc_mem_put+isc_mem_detach with isc_mem_putanddetach
This commit is contained in:
parent
b23c8aa5e8
commit
d502569902
8
cocci/isc_mem_putanddetach.spatch
Normal file
8
cocci/isc_mem_putanddetach.spatch
Normal file
@ -0,0 +1,8 @@
|
||||
@@
|
||||
expression M;
|
||||
expression E1, E2;
|
||||
@@
|
||||
|
||||
- isc_mem_put(M, E1, E2);
|
||||
- isc_mem_detach(&M);
|
||||
+ isc_mem_putanddetach(&M, E1, E2);
|
Loading…
x
Reference in New Issue
Block a user