Merge branch 'patch-6' of https://github.com/janjongboom/mbed-os into rollup

pull/10097/head
Martin Kojtal 2019-03-14 11:37:18 +00:00
commit f032c8c76e
1 changed files with 1 additions and 0 deletions

View File

@ -673,6 +673,7 @@ static nsapi_size_or_error_t start_udp_receiver_thread(SInfo *info, int argc, ch
int *packetSizes = new (nothrow) int[PACKET_SIZE_ARRAY_LEN];
if (!packetSizes) {
cmd_printf("Allocation failed\r\n");
free(dataIn);
return CMDLINE_RETCODE_FAIL;
}
for (int i = 0; i < PACKET_SIZE_ARRAY_LEN; i++) {