mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-19 02:28:27 -05:00
cocci: Add semantic patch to refactor dns_message_destroy()
dns_message_t objects are now being handled using reference counting semantics, so now dns_message_destroy() is not called directly anymore, dns_message_detach must be called instead.
This commit is contained in:
parent
cde6227a68
commit
7deaf9a93c
1 changed files with 6 additions and 0 deletions
6
cocci/dns_message_destroy.spatch
Normal file
6
cocci/dns_message_destroy.spatch
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@@
|
||||
expression M;
|
||||
@@
|
||||
|
||||
- dns_message_destroy(M);
|
||||
+ dns_message_detach(M);
|
||||
Loading…
Reference in a new issue