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 78585df40b09957ca540adbd55561c9fb438519c..6b38ee9505951087f0f22f5355ea4774dc8e17ea 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);