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.
2 parents 1264660 + 81f8529 commit cd4283eCopy full SHA for cd4283e
TESTS/mbedmicro-rtos-mbed/malloc/main.cpp
@@ -122,7 +122,7 @@ void test_alloc_and_free(void)
122
int size = SIZE_INCREMENTS;
123
int loop = ALLOC_LOOP;
124
while (loop) {
125
- data = malloc(size);
+ data = count < ALLOC_ARRAY_SIZE ? malloc(size) : NULL;
126
if (NULL != data) {
127
array[count++] = data;
128
memset((void *)data, 0xdeadbeef, size);
0 commit comments