mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Clear the pointer to destroyed object early using the semantic patch
Also disable the semantic patch as the code needs tweaks here and there because some destroy functions might not destroy the object and return early if the object is still in use.
This commit is contained in:
@@ -2068,6 +2068,7 @@ dns_sdlzunregister(dns_sdlzimplementation_t **sdlzimp) {
|
||||
REQUIRE(sdlzimp != NULL && *sdlzimp != NULL);
|
||||
|
||||
imp = *sdlzimp;
|
||||
*sdlzimp = NULL;
|
||||
|
||||
/* Unregister the DLZ driver implementation */
|
||||
dns_dlzunregister(&imp->dlz_imp);
|
||||
@@ -2080,8 +2081,6 @@ dns_sdlzunregister(dns_sdlzimplementation_t **sdlzimp) {
|
||||
* remove it from the memory context.
|
||||
*/
|
||||
isc_mem_putanddetach(&imp->mctx, imp, sizeof(dns_sdlzimplementation_t));
|
||||
|
||||
*sdlzimp = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user