]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
dnstap io, free alloced resource on fail path.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 28 Feb 2020 08:17:02 +0000 (09:17 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 28 Feb 2020 08:17:02 +0000 (09:17 +0100)
dnstap/dnstap.c

index cd4c070f212d4f9d3da8df961dea0087a1ee14c2..cc5449dff4a1b103f394fc6e20c7b140cbbb2caa 100644 (file)
@@ -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;