[pulseaudio-discuss] [PATCH 1/2] bluetooth: fix possible segfault in bluetooth backend-native.c module

Andrew Hlynskyi ahlincq at gmail.com
Thu Apr 13 05:22:39 UTC 2017


The pa_bluetooth_transport_unlink function already
called by the pa_bluetooth_transport_free function.
---
 src/modules/bluetooth/backend-native.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/modules/bluetooth/backend-native.c b/src/modules/bluetooth/backend-native.c
index 6eb4e168..cbafaff6 100644
--- a/src/modules/bluetooth/backend-native.c
+++ b/src/modules/bluetooth/backend-native.c
@@ -415,7 +415,6 @@ static void rfcomm_io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_i
     return;
 
 fail:
-    pa_bluetooth_transport_unlink(t);
     pa_bluetooth_transport_free(t);
 }
 
-- 
2.11.0



More information about the pulseaudio-discuss mailing list