[PATCH 1/4] android/client: Fix double close issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

File is closed inside reading thread. Fixes:
...
Error in
`.../bluez/android/haltest':
double free or corruption (!prev): 0x000000000065a5e0 ***

Program received signal SIGABRT, Aborted.
...
---
 android/client/if-sco.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/client/if-sco.c b/android/client/if-sco.c
index 4919fd9..70e2737 100644
--- a/android/client/if-sco.c
+++ b/android/client/if-sco.c
@@ -451,6 +451,8 @@ static void read_p(int argc, const char **argv)
 		haltest_error("Cannot create playback thread!\n");
 		goto failed;
 	}
+
+	return;
 failed:
 	if (out)
 		fclose(out);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux