]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
in stop flush use timer_del to remove timer.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Jan 2020 14:17:43 +0000 (15:17 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Jan 2020 14:17:43 +0000 (15:17 +0100)
dnstap/dtstream.c

index f3d50a0275a286c82d7b4631eab4cef94265fd38..60cb04567e431deab0b83e4531d1bbf7f577426c 100644 (file)
@@ -1070,7 +1070,7 @@ static void dtio_control_stop_flush(struct dt_io_thread* dtio)
                UB_EV_WRITE | UB_EV_PERSIST, &dtio_stop_ev_cb, &info);
        if(!stopev) {
                log_err("dnstap io: malloc failure");
-               ub_event_del(timer);
+               ub_timer_del(timer);
                ub_event_free(timer);
                ub_event_base_free(info.base);
                return;
@@ -1078,7 +1078,7 @@ static void dtio_control_stop_flush(struct dt_io_thread* dtio)
        if(ub_event_add(stopev, NULL) != 0) {
                log_err("dnstap io: cannot event_add");
                ub_event_free(stopev);
-               ub_event_del(timer);
+               ub_timer_del(timer);
                ub_event_free(timer);
                ub_event_base_free(info.base);
                return;
@@ -1089,7 +1089,7 @@ static void dtio_control_stop_flush(struct dt_io_thread* dtio)
                log_err("dnstap io: malloc failure");
                ub_event_del(stopev);
                ub_event_free(stopev);
-               ub_event_del(timer);
+               ub_timer_del(timer);
                ub_event_free(timer);
                ub_event_base_free(info.base);
                return;
@@ -1105,7 +1105,7 @@ static void dtio_control_stop_flush(struct dt_io_thread* dtio)
        free(info.stop_frame);
        ub_event_del(stopev);
        ub_event_free(stopev);
-       ub_event_del(timer);
+       ub_timer_del(timer);
        ub_event_free(timer);
        ub_event_base_free(info.base);
 }