aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/wasm-module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/wasm-module.c b/bfd/wasm-module.c
index 9735ebe..ca7e381 100644
--- a/bfd/wasm-module.c
+++ b/bfd/wasm-module.c
@@ -357,7 +357,8 @@ wasm_scan_name_function_section (bfd *abfd, sec_ptr asect)
return true;
error_return:
- bfd_release (abfd, symbols);
+ if (symbols)
+ bfd_release (abfd, symbols);
return false;
}