Diff between cbd2b1348ba88667b5b02cb197170a21ba4d4ae9 and b0abb13fafa89f4d00f0c2d37d1babc1d873d6ca

Changed Files

File Additions Deletions Status
monitor/hcidump.c +2 -1 modified

Full Patch

diff --git a/monitor/hcidump.c b/monitor/hcidump.c
index 043c75e..373d2f5 100644
--- a/monitor/hcidump.c
+++ b/monitor/hcidump.c
@@ -233,7 +233,7 @@ static void device_list(int fd, int max_dev)
 
 	if (ioctl(fd, HCIGETDEVLIST, (void *) dl) < 0) {
 		perror("Failed to get device list");
-		return;
+		goto done;
 	}
 
 	for (i = 0; i < dl->dev_num; i++, dr++) {
@@ -253,6 +253,7 @@ static void device_list(int fd, int max_dev)
 		open_device(dr->dev_id);
 	}
 
+done:
 	free(dl);
 }