diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-24 00:38:31 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-24 02:57:50 +0200 |
commit | 39763c6cb00a3f48bb1145e8869e778ba48190da (patch) | |
tree | 44f0999117f6005c34c45c2ad0f4f9d8b42ab337 /py/lexerstr.c | |
parent | d552db426b3b79813a6269e4c18519b2d22195e4 (diff) | |
download | micropython-39763c6cb00a3f48bb1145e8869e778ba48190da.tar.gz micropython-39763c6cb00a3f48bb1145e8869e778ba48190da.zip |
lexerstr: Free mp_lexer_str_buf_t structure itself.
Diffstat (limited to 'py/lexerstr.c')
-rw-r--r-- | py/lexerstr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/lexerstr.c b/py/lexerstr.c index 8cbf36d831..1e105d8645 100644 --- a/py/lexerstr.c +++ b/py/lexerstr.c @@ -25,6 +25,7 @@ static void str_buf_free(mp_lexer_str_buf_t *sb) { if (sb->free_len > 0) { m_free((char*)sb->src_beg, sb->free_len); } + m_del_obj(mp_lexer_str_buf_t, sb); } mp_lexer_t *mp_lexer_new_from_str_len(const char *src_name, const char *str, uint len, uint free_len) { |