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.
Whilst
new[]
is implemented,delete[]
is not implemented here. Therefore if you attempt to free memory allocated withnew[]
withdelete[]
the system implementation offree
is used rather thanmicrobit_free
. Usingdelete
works as this is defined to usemicrobit_free
but is not recommend C++ style.