Diff between 0d8db636db112d4b7e9d2442a31ae6383865476f and 29fa9f53d862fe7c38e935aaa74aa81080af8a5c

Changed Files

File Additions Deletions Status
android/bluetooth.c +2 -0 modified

Full Patch

diff --git a/android/bluetooth.c b/android/bluetooth.c
index 5de3401..b818e88 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;
 	}