dns_db_updatenotify_unregister needed to be called earlier to ensure that listener->onupdate_arg always points to a valid object. The existing lazy cleanup in rbtdb_free did not ensure that.
dns_db_updatenotify_unregister needed to be called earlier to ensure that listener->onupdate_arg always points to a valid object. The existing lazy cleanup in rbtdb_free did not ensure that.