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 5f8a655 commit 94aa4fcCopy full SHA for 94aa4fc
libraries/AP_MultiHeap/MultiHeap_malloc.cpp
@@ -36,9 +36,9 @@ void *MultiHeap::heap_create(uint32_t size)
36
{
37
struct heap *new_heap = (struct heap*)malloc(sizeof(struct heap));
38
if (new_heap != nullptr) {
39
+ new_heap->magic = HEAP_MAGIC;
40
new_heap->max_heap_size = size;
41
}
- new_heap->magic = HEAP_MAGIC;
42
return (void *)new_heap;
43
44
0 commit comments