Diff between be7400b4db133b696edd2dc3c68e633368a50efe and c392b9bc820824da9f0ec38ddafb8d0f36f6f0a5
Changed Files
| File | Additions | Deletions | Status |
| src/shared/gatt-helpers.c | +4 | -2 | modified |
Full Patch
diff --git a/src/shared/gatt-helpers.c b/src/shared/gatt-helpers.c
index 34e4bed..a33f960 100644
--- a/src/shared/gatt-helpers.c
+++ b/src/shared/gatt-helpers.c
@@ -845,10 +845,12 @@ static bool discover_services(struct bt_att *att, bt_uuid_t *uuid,
discovery_op_unref);
}
- if (!op->id)
+ if (!op->id) {
free(op);
+ return false;
+ }
- return op->id ? true : false;
+ return true;
}
bool bt_gatt_discover_all_primary_services(struct bt_att *att, bt_uuid_t *uuid,