]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix memory leak in error case. From review.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Feb 2020 16:33:36 +0000 (17:33 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Feb 2020 16:33:36 +0000 (17:33 +0100)
dnstap/dnstap.c

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