diff --git a/py/persistentcode.c b/py/persistentcode.c index 477ba7501c..ba126a3fb2 100644 --- a/py/persistentcode.c +++ b/py/persistentcode.c @@ -124,10 +124,9 @@ STATIC size_t read_uint(mp_reader_t *reader) { STATIC qstr load_qstr(mp_reader_t *reader) { size_t len = read_uint(reader); - char *str = m_new(char, len); + char str[len]; read_bytes(reader, (byte*)str, len); qstr qst = qstr_from_strn(str, len); - m_del(char, str, len); return qst; }