lancaster-university / microbit-dal

http://lancaster-university.github.io/microbit-docs
Other
254 stars 130 forks source link

delete[] operator not implemented in the heap allocator #348

Open thomasdenney opened 6 years ago

thomasdenney commented 6 years ago

Whilst new[] is implemented, delete[] is not implemented here. Therefore if you attempt to free memory allocated with new[] with delete[] the system implementation of free is used rather than microbit_free. Using delete works as this is defined to use microbit_free but is not recommend C++ style.

pelikhan commented 5 years ago

@finneyj i beleive the new heap allocator fixed this.