From: Ondřej Surý Date: Tue, 23 Jul 2019 21:28:02 +0000 (-0400) Subject: Add spatch to replace isc_mem_put+isc_mem_detach with isc_mem_putanddetach X-Git-Tag: v9.15.3~20^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d50256990262478f9246e6f64162da5321cd7174;p=thirdparty%2Fbind9.git Add spatch to replace isc_mem_put+isc_mem_detach with isc_mem_putanddetach --- diff --git a/cocci/isc_mem_putanddetach.spatch b/cocci/isc_mem_putanddetach.spatch new file mode 100644 index 00000000000..0f29779158b --- /dev/null +++ b/cocci/isc_mem_putanddetach.spatch @@ -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);