We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee720f3 commit 4acb393Copy full SHA for 4acb393
features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp
@@ -84,6 +84,7 @@ ble_error_t GattServer::addService(GattService &service)
84
att_service->attGroup.pAttr =
85
(attsAttr_t*) alloc_block(attributes_count * sizeof(attsAttr_t));
86
if (att_service->attGroup.pAttr == NULL) {
87
+ delete att_service;
88
return BLE_ERROR_BUFFER_OVERFLOW;
89
}
90
0 commit comments