Skip to content

Commit

Permalink
wasm: Plug a resource leak on exception (CID 508177) (fluent#9615)
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
Signed-off-by: AdheipSingh <[email protected]>
  • Loading branch information
cosmo0920 authored and AdheipSingh committed Dec 4, 2024
1 parent c713bda commit 6bbb7b4
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 6bbb7b4

Please sign in to comment.