mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Fixed incompatible integer to pointer conversion returning 'int' from a function with result type 'struct memory_allocation *'
This commit is contained in:
parent
1c2c210f13
commit
5a6b9120be
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ static struct memory_allocation * memory_heap_alloc(struct memory_type *m, size_
|
|||
ret = posix_memalign(&ma->address, ma->alignment, ma->length);
|
||||
if (ret) {
|
||||
free(ma);
|
||||
return ret;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return ma;
|
||||
|
|
Loading…
Add table
Reference in a new issue