Commit 9499afd
vfs_littlefs_file.c: Prevent double close of a file
An attempt to close a file twice resulted in a crash, because buffers
should have been freed again. This change checks first, if a file is
already closed.1 parent ed4e191 commit 9499afd
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| 110 | + | |
| 111 | + | |
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
0 commit comments