diff options
author | Damien <damien.p.george@gmail.com> | 2013-12-29 19:33:23 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-12-29 19:33:23 +0000 |
commit | 732407f1bf12364375162e8fb73816532a5d139c (patch) | |
tree | bf795d7bab01d6d603eec761affac7091be9606a /py/objfun.c | |
parent | a1c8e5737cebba08909104d47c1dfd16ef80e6a1 (diff) | |
download | micropython-732407f1bf12364375162e8fb73816532a5d139c.tar.gz micropython-732407f1bf12364375162e8fb73816532a5d139c.zip |
Change memory allocation API to require size for free and realloc.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfun.c b/py/objfun.c index bf11b5e6ab..cefc9a95fe 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -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; } |