Fix debug thread not created issue (#983)

And fix a double free issue when starting debug server failed
This commit is contained in:
Xu Jun
2022-01-26 09:56:01 +08:00
committed by GitHub
parent e2403c3ee9
commit 68fd6454c2
2 changed files with 11 additions and 1 deletions

View File

@ -315,7 +315,6 @@ wasm_debug_instance_create(WASMCluster *cluster)
if (!wasm_debug_control_thread_create(instance)) {
LOG_ERROR("WASM Debug Engine error: failed to create control thread");
wasm_runtime_free(instance);
goto fail3;
}