summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2024-02-16 13:02:28 +1100
committerDamien George <damien@micropython.org>2024-02-21 09:51:52 +1100
commit2962e24167a7416d4caf8d25f463e67b46c3a40a (patch)
treec07eb7c464928d02d933596654745fcc8bfac8c5 /py/compile.c
parent31e131bd712ac118074052689e3976aed3564586 (diff)
extmod/vfs_posix_file: Ensure file object has safe default fd.
With this commit, if file open fails, the object will have fd = -1 (closed) and the finaliser will not attempt to close anything. Fixes issue #13672. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Diffstat (limited to 'py/compile.c')
0 files changed, 0 insertions, 0 deletions