Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions service/stacks/zephyr/sal_gatt_server_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,12 @@ static struct bt_sdp_record* gatt_sdp_create_record(struct bt_gatt_service* srv)

gatt_record->srv = srv;
gatt_record->record = record;
break;
return record;
}

return record;
free(attrs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest add err log

free(record);
return NULL;
}

static void gatt_sdp_delete_record(struct bt_sdp_record* record)
Expand Down