py: Use m_{new,renew,del} consistently.
This is so all memory requests go through the same interface.
diff --git a/py/objexcept.c b/py/objexcept.c
index 8bd802e..987a54f 100644
--- a/py/objexcept.c
+++ b/py/objexcept.c
@@ -64,7 +64,7 @@
mp_int_t size = mp_obj_get_int(size_in);
void *buf = NULL;
if (size > 0) {
- buf = m_malloc(size);
+ buf = m_new(byte, size);
}
int old_size = mp_emergency_exception_buf_size;
@@ -78,7 +78,7 @@
MICROPY_END_ATOMIC_SECTION(atomic_state);
if (old_buf != NULL) {
- m_free(old_buf, old_size);
+ m_del(byte, old_buf, old_size);
}
return mp_const_none;
}