summaryrefslogtreecommitdiffstatshomepage
path: root/py/lexerstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/lexerstr.c')
-rw-r--r--py/lexerstr.c1
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) {