mirror of
https://github.com/thelsing/knx.git
synced 2026-02-23 13:50:35 +01:00
fix coredump
This commit is contained in:
@@ -31,9 +31,10 @@ void Platform::freeMemory(uint8_t* ptr)
|
||||
|
||||
Platform::Platform()
|
||||
{
|
||||
// allocate memory to have a memory reference, substract a bit
|
||||
_memoryReference = (uint8_t*)malloc(1) - 1024;
|
||||
// allocate memory to have a memory reference, substract a bit
|
||||
_memoryReference = (uint8_t*)malloc(1);
|
||||
free(_memoryReference);
|
||||
print("MemRef: ");
|
||||
_memoryReference -= 1024;
|
||||
print("MemRef: ");
|
||||
println((long unsigned int)_memoryReference, HEX);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user