From 7deaf9a93cba04460cacf453279ee87f0dc6d8cb Mon Sep 17 00:00:00 2001 From: Diego Fronza Date: Mon, 21 Sep 2020 18:19:49 -0300 Subject: [PATCH] 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. --- cocci/dns_message_destroy.spatch | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cocci/dns_message_destroy.spatch diff --git a/cocci/dns_message_destroy.spatch b/cocci/dns_message_destroy.spatch new file mode 100644 index 0000000000..4043525413 --- /dev/null +++ b/cocci/dns_message_destroy.spatch @@ -0,0 +1,6 @@ +@@ +expression M; +@@ + +- dns_message_destroy(M); ++ dns_message_detach(M);