Skip to content

Commit

Permalink
wasm: Plug a resource leak on exception (CID 508177) (#9615)
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Dec 4, 2024
1 parent 5c210a8 commit 9acc096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wasm/flb_wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ struct flb_wasm *flb_wasm_instantiate(struct flb_config *config, const char *was

if (!wasm_runtime_full_init(&wasm_args)) {
flb_error("Init runtime environment failed.");
flb_free(fw);

return NULL;
}

Expand Down

0 comments on commit 9acc096

Please sign in to comment.