proto-shell: clear dependencies on free
authorFelix Fietkau <nbd@openwrt.org>
Mon, 14 May 2012 20:25:30 +0000 (22:25 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 14 May 2012 20:25:30 +0000 (22:25 +0200)
proto-shell.c

index 78585df..6b38ee9 100644 (file)
@@ -316,6 +316,7 @@ proto_shell_free(struct interface_proto_state *proto)
        struct proto_shell_state *state;
 
        state = container_of(proto, struct proto_shell_state, proto);
+       proto_shell_clear_host_dep(state);
        netifd_kill_process(&state->script_task);
        netifd_kill_process(&state->proto_task);
        free(state->config);