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/asmthumb.c | |
| parent | a1c8e5737cebba08909104d47c1dfd16ef80e6a1 (diff) | |
Change memory allocation API to require size for free and realloc.
Diffstat (limited to 'py/asmthumb.c')
| -rw-r--r-- | py/asmthumb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/asmthumb.c b/py/asmthumb.c index a6fe4be80..ee8041ac9 100644 --- a/py/asmthumb.c +++ b/py/asmthumb.c @@ -44,7 +44,7 @@ asm_thumb_t *asm_thumb_new(uint max_num_labels) { void asm_thumb_free(asm_thumb_t *as, bool free_code) { if (free_code) { - m_free(as->code_base); + m_del(byte, as->code_base, as->code_size); } /* if (as->label != NULL) { @@ -58,7 +58,7 @@ void asm_thumb_free(asm_thumb_t *as, bool free_code) { g_array_free(as->label, true); } */ - m_free(as); + m_del_obj(asm_thumb_t, as); } void asm_thumb_start_pass(asm_thumb_t *as, int pass) { |
