Fixup of reload bug.

git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@726 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
wouter 2007-11-01 09:48:20 +00:00
parent 6836a8c0b4
commit 0d1d88543d
3 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
1 November 2007: Wouter
- Fixup of crash on reload, due to anchors in env not NULLed after
dealloc during deinit.
31 October 2007: Wouter
- cache-max-ttl config option.
- building outside sourcedir works again.

View File

@ -88,6 +88,7 @@ iter_deinit(struct module_env* env, int id)
forwards_delete(iter_env->fwds);
donotq_delete(iter_env->donotq);
free(iter_env);
env->modinfo[id] = NULL;
}
/** new query for iterator */

View File

@ -162,10 +162,12 @@ val_deinit(struct module_env* env, int id)
return;
val_env = (struct val_env*)env->modinfo[id];
anchors_delete(env->anchors);
env->anchors = NULL;
key_cache_delete(val_env->kcache);
free(val_env->nsec3_keysize);
free(val_env->nsec3_maxiter);
free(val_env);
env->modinfo[id] = NULL;
}
/** allocate new validator query state */