summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfun.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-12-29 19:33:23 +0000
committerDamien <damien.p.george@gmail.com>2013-12-29 19:33:23 +0000
commit732407f1bf12364375162e8fb73816532a5d139c (patch)
treebf795d7bab01d6d603eec761affac7091be9606a /py/objfun.c
parenta1c8e5737cebba08909104d47c1dfd16ef80e6a1 (diff)
downloadmicropython-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.c2
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;
}