From f3314791b10f4c7ccc17ab4fd51c9642a670e0a7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 28 Sep 2007 13:35:08 +0000 Subject: Fix interface removal on script exit. --- network/common.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'network') diff --git a/network/common.c b/network/common.c index e634ac43..b5f42b19 100644 --- a/network/common.c +++ b/network/common.c @@ -89,11 +89,8 @@ static void script_exited(GPid pid, gint status, gpointer data) else debug("%d was killed by signal %d", pid, WTERMSIG(status)); - g_spawn_close_pid(pid); - pid = 0; - - g_free(bnep->devname); - pids = g_slist_remove(pids, bnep); + g_spawn_close_pid(bnep->pid); + bnep->pid = 0; } uint16_t bnep_service_id(const char *svc) -- cgit