aboutsummaryrefslogtreecommitdiff
path: root/stm/lexerstm.c
diff options
context:
space:
mode:
authorDamien2013-12-29 19:33:23 +0000
committerDamien2013-12-29 19:33:23 +0000
commit732407f1bf12364375162e8fb73816532a5d139c (patch)
treebf795d7bab01d6d603eec761affac7091be9606a /stm/lexerstm.c
parenta1c8e5737cebba08909104d47c1dfd16ef80e6a1 (diff)
Change memory allocation API to require size for free and realloc.
Diffstat (limited to 'stm/lexerstm.c')
-rw-r--r--stm/lexerstm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/lexerstm.c b/stm/lexerstm.c
index 4e9905224..dfb84cca1 100644
--- a/stm/lexerstm.c
+++ b/stm/lexerstm.c
@@ -17,7 +17,7 @@ unichar str_buf_next_char(mp_lexer_str_buf_t *sb) {
void str_buf_free(mp_lexer_str_buf_t *sb) {
if (sb->free) {
- m_free((char*)sb->src_beg);
+ m_del(char, (char*)sb->src_beg, 0 /* don't know allocated size of src */);
}
}