| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 97fc00a commit 1b5856a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -236,11 +236,9 @@ void WASI::New(const FunctionCallbackInfo<Value>& args) { | |||
| 236 | 236 | delete[] options.argv; | |
| 237 | 237 | } | |
| 238 | 238 | ||
| 239 | - if (options.envp != nullptr) { | ||
| 240 | - for (uint32_t i = 0; options.envp[i]; i++) | ||
| 241 | - free(const_cast<char*>(options.envp[i])); | ||
| 242 | - delete[] options.envp; | ||
| 243 | - } | ||
| 239 | + for (uint32_t i = 0; options.envp[i]; i++) | ||
| 240 | + free(const_cast<char*>(options.envp[i])); | ||
| 241 | + delete[] options.envp; | ||
| 244 | 242 | ||
| 245 | 243 | if (options.preopens != nullptr) { | |
| 246 | 244 | for (uint32_t i = 0; i < options.preopenc; i++) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments