summaryrefslogtreecommitdiff
path: root/src/wasm-ast-lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-ast-lexer.c')
-rw-r--r--src/wasm-ast-lexer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wasm-ast-lexer.c b/src/wasm-ast-lexer.c
index 508a05fc..a5824bfd 100644
--- a/src/wasm-ast-lexer.c
+++ b/src/wasm-ast-lexer.c
@@ -471,7 +471,6 @@ WasmAstLexer* wasm_new_ast_file_lexer(WasmAllocator* allocator,
lexer->source.file = fopen(filename, "rb");
if (!lexer->source.file) {
wasm_destroy_ast_lexer(lexer);
- wasm_free(allocator, lexer);
return NULL;
}
return lexer;