mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
set modinfo to null last
This commit is contained in:
parent
45142868ec
commit
0bf55e6063
1 changed files with 3 additions and 3 deletions
|
|
@ -566,12 +566,12 @@ void pythonmod_deinit(struct module_env* env, int id)
|
|||
pe->fname = NULL;
|
||||
free(pe);
|
||||
|
||||
/* Module is deallocated in Python */
|
||||
env->modinfo[id] = NULL;
|
||||
|
||||
/* iterate over all possible callback types and clean up each in turn */
|
||||
for (int cbtype = 0; cbtype < inplace_cb_types_total; cbtype++)
|
||||
inplace_cb_delete(env, cbtype, id);
|
||||
|
||||
/* Module is deallocated in Python */
|
||||
env->modinfo[id] = NULL;
|
||||
}
|
||||
|
||||
void pythonmod_inform_super(struct module_qstate* qstate, int id, struct module_qstate* super)
|
||||
|
|
|
|||
Loading…
Reference in a new issue