diff options
author | Emilie Feral <emilie.feral@numworks.com> | 2021-12-27 15:39:34 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-01-06 13:00:43 +1100 |
commit | 58b56b91c454f4e1c04ca1cf58e35809caf979de (patch) | |
tree | d834196df3c8559f475a63581da97ff96b31e369 /docs/esp32 | |
parent | 01953f2964e4e26b9bbf70d19d1e199ed2cf1a89 (diff) |
py/qstr: Reset mpstate.qstr_last_chunk before raising an error.
The qstr_last_chunk is not collected by the garbage collector. This relies
on the assertion that qstr_pool_t also references the qstr_last_chunk. If
an exception is raised while allocating the qstr_pool_t, qstr_last_chunk
has to be invalidated not to become a dangling reference at the next
garbage collection.
Signed-off-by: Emilie Feral <emilie.feral@numworks.com>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions