From: W.C.A. Wijngaards Date: Wed, 19 Feb 2020 16:33:36 +0000 (+0100) Subject: Fix memory leak in error case. From review. X-Git-Tag: 1.11.0rc1~120^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57baa78dd137555b9a3b23f77ad94fcb778243c7;p=thirdparty%2Funbound.git Fix memory leak in error case. From review. --- diff --git a/dnstap/dnstap.c b/dnstap/dnstap.c index c34f08b2e..cd4c070f2 100644 --- a/dnstap/dnstap.c +++ b/dnstap/dnstap.c @@ -150,6 +150,7 @@ dt_create(struct config_file* cfg) return NULL; } if(!dt_io_thread_apply_cfg(env->dtio, cfg)) { + dt_io_thread_delete(env->dtio); free(env); return NULL; }