Skip to content

Commit 39763c6

Browse files
committed
lexerstr: Free mp_lexer_str_buf_t structure itself.
1 parent d552db4 commit 39763c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/lexerstr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ static void str_buf_free(mp_lexer_str_buf_t *sb) {
2525
if (sb->free_len > 0) {
2626
m_free((char*)sb->src_beg, sb->free_len);
2727
}
28+
m_del_obj(mp_lexer_str_buf_t, sb);
2829
}
2930

3031
mp_lexer_t *mp_lexer_new_from_str_len(const char *src_name, const char *str, uint len, uint free_len) {

0 commit comments

Comments
 (0)