Commit 835dc85 1 parent 5f8fb20 commit 835dc85 Copy full SHA for 835dc85
File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,16 @@ void TJS_FreeRuntime(TJSRuntime *qrt) {
350
350
JS_FreeContext (qrt -> ctx );
351
351
JS_FreeRuntime (qrt -> rt );
352
352
353
+ /* Destroy CURLM handle. */
354
+ if (qrt -> curl_ctx .curlm_h ) {
355
+ curl_multi_cleanup (qrt -> curl_ctx .curlm_h );
356
+ qrt -> curl_ctx .curlm_h = NULL ;
357
+ }
358
+
359
+ /* Destroy WASM runtime. */
360
+ m3_FreeEnvironment (qrt -> wasm_ctx .env );
361
+ qrt -> wasm_ctx .env = NULL ;
362
+
353
363
/* Cleanup loop. All handles should be closed. */
354
364
int closed = 0 ;
355
365
for (int i = 0 ; i < 5 ; i ++ ) {
@@ -368,16 +378,6 @@ void TJS_FreeRuntime(TJSRuntime *qrt) {
368
378
(void ) closed ;
369
379
#endif
370
380
371
- /* Destroy CURLM handle. */
372
- if (qrt -> curl_ctx .curlm_h ) {
373
- curl_multi_cleanup (qrt -> curl_ctx .curlm_h );
374
- qrt -> curl_ctx .curlm_h = NULL ;
375
- }
376
-
377
- /* Destroy WASM runtime. */
378
- m3_FreeEnvironment (qrt -> wasm_ctx .env );
379
- qrt -> wasm_ctx .env = NULL ;
380
-
381
381
tjs__free (qrt );
382
382
}
383
383
You can’t perform that action at this time.
0 commit comments