summaryrefslogtreecommitdiffstats
path: root/audio/ctl_bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/ctl_bluetooth.c')
-rw-r--r--audio/ctl_bluetooth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/ctl_bluetooth.c b/audio/ctl_bluetooth.c
index 4e55058e..037cfb09 100644
--- a/audio/ctl_bluetooth.c
+++ b/audio/ctl_bluetooth.c
@@ -193,7 +193,7 @@ SND_CTL_PLUGIN_DEFINE_FUNC(bluetooth)
unsigned int id;
int sk, err;
- DBG("");
+ DBG("Bluetooth Control plugin");
snd_config_for_each(iter, next, conf) {
snd_config_t *n = snd_config_iterator_entry(iter);
@@ -270,6 +270,8 @@ SND_CTL_PLUGIN_DEFINE_FUNC(bluetooth)
return 0;
error:
+ close(sk);
+
free(data);
return err;