| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 808a456 commit 1148724
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -162,6 +162,15 @@ void WASI::New(const FunctionCallbackInfo<Value>& args) { | |||
| 162 | 162 | free(options.envp[i]); | |
| 163 | 163 | delete[] options.envp; | |
| 164 | 164 | } | |
| 165 | + | ||
| 166 | + if (options.preopens != nullptr) { | ||
| 167 | + for (uint32_t i = 0; i < options.preopenc; i++) { | ||
| 168 | + free(options.preopens[i].mapped_path); | ||
| 169 | + free(options.preopens[i].real_path); | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + delete[] options.preopens; | ||
| 173 | + } | ||
| 165 | 174 | } | |
| 166 | 175 | ||
| 167 | 176 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments