summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-02-25 18:08:46 +0100
committerGravatar Nikias Bassen2009-02-25 18:08:46 +0100
commit97e6c8b7bb89c7f08ad46050598c15a55ea3f436 (patch)
tree88ad858d064f8568a7a03a50f7ac9508e73c3611
parent471b064f182bf0770729546607b0aa920c46419b (diff)
downloadusbmuxd-97e6c8b7bb89c7f08ad46050598c15a55ea3f436.tar.gz
usbmuxd-97e6c8b7bb89c7f08ad46050598c15a55ea3f436.tar.bz2
fix: close socket properly
-rw-r--r--iproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iproxy.c b/iproxy.c
index d88b7ff..a58365a 100644
--- a/iproxy.c
+++ b/iproxy.c
@@ -290,6 +290,7 @@ void *acceptor_thread(void *arg)
fprintf(stderr, "Error connecting to device!\n");
}
}
+ close(cdata->fd);
close(cdata->sfd);
return NULL;