diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2013-12-20 14:03:14 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-12-20 14:20:25 +0200 |
commit | 40cef67567ae92820520626bce05ec22aff9007b (patch) | |
tree | a22a1a79410d867788dc37617b583b4bf442ce5a /android/hal-bluetooth.c | |
parent | 224b6b8088b725c5f3755fdf377f78b13dcdf31e (diff) | |
download | bluez-40cef67567ae92820520626bce05ec22aff9007b.tar.gz |
android/hal-bluetooth: Free device on close()
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r-- | android/hal-bluetooth.c | 2 |
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; } |