]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor *_destroy and *_detach functions to unified order of actions.
authorOndřej Surý <ondrej@sury.org>
Tue, 28 Aug 2018 08:18:59 +0000 (10:18 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 28 Aug 2018 11:15:59 +0000 (13:15 +0200)
commit0f24c55d38efe99fe72980f6e443ba60c2b4edc6
tree29c01db649a8516ed6946768fb88511801415283
parent9d5df99a9d9d13c9487969b6fa3818a8b83b4ee2
Refactor *_destroy and *_detach functions to unified order of actions.

This properly orders clearing the freed pointer and calling isc_refcount_destroy
as early as possible to have ability to put proper memory barrier when cleaning
up reference counting.
20 files changed:
bin/tests/system/dyndb/driver/db.c
lib/dns/acl.c
lib/dns/catz.c
lib/dns/dnstap.c
lib/dns/dst_api.c
lib/dns/iptable.c
lib/dns/keytable.c
lib/dns/nta.c
lib/dns/order.c
lib/dns/portlist.c
lib/dns/rbtdb.c
lib/dns/rpz.c
lib/dns/tsig.c
lib/dns/view.c
lib/dns/zone.c
lib/isc/mem.c
lib/isc/radix.c
lib/isccfg/aclconf.c
lib/isccfg/parser.c
lib/ns/server.c