From: W.C.A. Wijngaards Date: Fri, 28 Feb 2020 08:17:02 +0000 (+0100) Subject: dnstap io, free alloced resource on fail path. X-Git-Tag: release-1.11.0~120^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e856908696ba04f5254cbdb83c9745b95bd4fd2c;p=thirdparty%2Funbound.git dnstap io, free alloced resource on fail path. --- diff --git a/dnstap/dnstap.c b/dnstap/dnstap.c index cd4c070f2..cc5449dff 100644 --- a/dnstap/dnstap.c +++ b/dnstap/dnstap.c @@ -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;