X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=proto-shell.c;h=038fb0b8ff7e980babed5934386a114de6277f19;hb=5eb4f53ce6f1502e16114b51e50ab85ecbc8eb99;hp=2a5eda0144d37f3a2327af015ab4d595265b4d66;hpb=e4784c718099ce2e5c20410457e3c60d1eee8ed2;p=project%2Fnetifd.git diff --git a/proto-shell.c b/proto-shell.c index 2a5eda0..038fb0b 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -317,6 +317,7 @@ proto_shell_free(struct interface_proto_state *proto) struct proto_shell_state *state; state = container_of(proto, struct proto_shell_state, proto); + uloop_timeout_cancel(&state->teardown_timeout); proto_shell_clear_host_dep(state); netifd_kill_process(&state->script_task); netifd_kill_process(&state->proto_task);