Skip to content

Commit c30b308

Browse files
committed
extmod/vfs_reader: Fix use of NLR by popping context.
1 parent 5ec5bfb commit c30b308

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

extmod/vfs_reader.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ int mp_reader_new_file(mp_reader_t *reader, const char *filename) {
8181
rf->file = mp_vfs_open(1, &arg, (mp_map_t*)&mp_const_empty_map);
8282
int errcode;
8383
rf->len = mp_stream_rw(rf->file, rf->buf, sizeof(rf->buf), &errcode, MP_STREAM_RW_READ | MP_STREAM_RW_ONCE);
84+
nlr_pop();
8485
if (errcode != 0) {
8586
return errcode;
8687
}

0 commit comments

Comments
 (0)