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 90be8d7 commit 46d19d3Copy full SHA for 46d19d3
features/FEATURE_BLE/ble/pal/SimpleEventQueue.h
@@ -74,6 +74,10 @@ struct SimpleEventQueue : EventQueue {
74
return false;
75
}
76
uint8_t* event_buf = (uint8_t*)WsfBufAlloc(sizeof(EventNode));
77
+ if (event_buf == NULL) {
78
+ error("\r\n%s:%d Cordio WsfBufAlloc out of memory\r\n", __FILE__, __LINE__);
79
+ return false;
80
+ }
81
EventNode* next = new(event_buf) EventNode(event);
82
if (next == NULL) {
83
0 commit comments