mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-25 17:19:42 -05:00
dnstap io, free alloced resource on fail path.
This commit is contained in:
parent
065506d1a8
commit
e856908696
1 changed files with 2 additions and 0 deletions
|
|
@ -249,6 +249,8 @@ dt_init(struct dt_env *env)
|
|||
}
|
||||
if(!dt_io_thread_register_queue(env->dtio, env->msgqueue)) {
|
||||
log_err("malloc failure");
|
||||
dt_msg_queue_delete(env->msgqueue);
|
||||
env->msgqueue = NULL;
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue