mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
Change memory allocation API to require size for free and realloc.
This commit is contained in:
@@ -58,7 +58,7 @@ mp_obj_t fun_native_call_n(mp_obj_t self_in, int n_args, const mp_obj_t *args) {
|
||||
}
|
||||
|
||||
mp_obj_t res = ((mp_fun_var_t)self->fun)(n_args, args_ordered);
|
||||
m_free(args_ordered);
|
||||
m_del(mp_obj_t, args_ordered, n_args);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user