lexerstr: Free mp_lexer_str_buf_t structure itself.
This commit is contained in:
parent
d552db426b
commit
39763c6cb0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user