summaryrefslogtreecommitdiff
path: root/android/hal-bluetooth.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2013-12-20 14:03:14 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-12-20 14:20:25 +0200
commit40cef67567ae92820520626bce05ec22aff9007b (patch)
treea22a1a79410d867788dc37617b583b4bf442ce5a /android/hal-bluetooth.c
parent224b6b8088b725c5f3755fdf377f78b13dcdf31e (diff)
downloadbluez-40cef67567ae92820520626bce05ec22aff9007b.tar.gz
android/hal-bluetooth: Free device on close()
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r--android/hal-bluetooth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index 4ef2ebe63..2232ebe4a 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -891,6 +891,8 @@ static int close_bluetooth(struct hw_device_t *device)
cleanup();
+ free(device);
+
return 0;
}