]> git.ipfire.org Git - zone-sync.git/commitdiff
main: Don't double-free the transport
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2026 17:00:53 +0000 (17:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2026 17:00:53 +0000 (17:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
main.c

diff --git a/main.c b/main.c
index 52447a338ab01c765c9b00116cd1c56daeaa6c6a..b399745497f74fc819925346c30f2b062566874f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -558,10 +558,6 @@ static void destroy_loop(void* data) {
        if (ctx.view)
                dns_view_detach(&ctx.view);
 
-       // Destroy the transport
-       if (ctx.transport)
-               dns_transport_detach(&ctx.transport);
-
        // Destroy the transport list
        if (ctx.transports)
                dns_transport_list_detach(&ctx.transports);