1
0
Fork 0
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:
Dennis Potter 2018-07-04 10:39:13 +02:00
parent 1c2c210f13
commit 5a6b9120be

View file

@ -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;