[v9_9] corrected a possible crash in isc_test_end()

(cherry picked from commit 9e44639ae0)
This commit is contained in:
Evan Hunt
2017-05-21 15:44:39 -07:00
parent 5b695651e8
commit 7cc666abf1
+2 -2
View File
@@ -148,8 +148,6 @@ isc_test_end(void) {
isc_task_detach(&maintask);
if (taskmgr != NULL)
isc_taskmgr_destroy(&taskmgr);
if (lctx != NULL)
isc_log_destroy(&lctx);
if (hash_active) {
isc_hash_destroy();
hash_active = ISC_FALSE;
@@ -159,6 +157,8 @@ isc_test_end(void) {
cleanup_managers();
if (lctx != NULL)
isc_log_destroy(&lctx);
if (mctx != NULL)
isc_mem_destroy(&mctx);
}