Commit 39763c6c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

lexerstr: Free mp_lexer_str_buf_t structure itself.

parent d552db42
......@@ -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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment