From 29fa9f53d862fe7c38e935aaa74aa81080af8a5c Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 12 Feb 2014 16:22:07 +0200 Subject: [PATCH] android: Fix memory leak: uuid free Free uuid before exiting. --- android/bluetooth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/bluetooth.c b/android/bluetooth.c index 5de340185..b818e8857 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1557,6 +1557,8 @@ int bt_adapter_add_record(sdp_record_t *rec, uint8_t svc_hint) sdp_uuid2strn(uuid, uuid_str, sizeof(uuid_str)); DBG("UUID %s already added", uuid_str); + + bt_free(uuid); return -EALREADY; } -- 2.47.3