mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-14 00:03:58 -05:00
Fixup of reload bug.
git-svn-id: file:///svn/unbound/trunk@726 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
2725ad55fc
commit
734abf9323
3 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue