summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-03-19 03:15:31 +0100
committerGravatar Nikias Bassen2009-03-19 03:15:31 +0100
commit87957c6f9476655fee8512e46021b21db45c4018 (patch)
tree05c46da11d804960dca294ea781e6cd344534c28 /main.c
parent2c3c90055ba597ee9df271403de0dcdd620244f7 (diff)
downloadusbmuxd-87957c6f9476655fee8512e46021b21db45c4018.tar.gz
usbmuxd-87957c6f9476655fee8512e46021b21db45c4018.tar.bz2
forgot setting device_use_count variable in cleanup code
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9e487fe..f08a196 100644
--- a/main.c
+++ b/main.c
@@ -738,9 +738,11 @@ leave:
}
free(device_use_list);
device_use_list = newlist;
+ device_use_count--;
} else {
free(device_use_list);
device_use_list = NULL;
+ device_use_count = 0;
}
pthread_mutex_unlock(&usbmux_mutex);
}