Diff between 35cbfd9660949fca23418bfa32fd51d81ed91208 and 39b638526d9a45d54d2d6e3f175fd7eb057ef8f0

Changed Files

File Additions Deletions Status
tools/obex-client-tool.c +1 -0 modified

Full Patch

diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c
index ab93328..cb0e412 100644
--- a/tools/obex-client-tool.c
+++ b/tools/obex-client-tool.c
@@ -312,6 +312,7 @@ static GIOChannel *unix_connect(GObexTransportType transport)
 	if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
 		err = errno;
 		g_printerr("connect: %s (%d)\n", strerror(err), err);
+		close(sk);
 		return NULL;
 	}