projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87642f6
)
vms write_archive memory leaks
author
Alan Modra
<amodra@gmail.com>
Thu, 15 Jun 2023 00:32:31 +0000
(10:02 +0930)
committer
Alan Modra
<amodra@gmail.com>
Thu, 15 Jun 2023 00:41:56 +0000
(10:11 +0930)
This fixes two memory leaks in the vms archive handling.
* vms-lib.c (_bfd_vms_lib_build_map): Free input symbols.
(_bfd_vms_lib_write_archive_contents): Free archive map symbols.
bfd/vms-lib.c
patch
|
blob
|
history
diff --git
a/bfd/vms-lib.c
b/bfd/vms-lib.c
index ab938768ebe14fcd91b48a0e46e59cadb89ea0bf..298e959b8b93ad6be855be74644fef4cec7e8912 100644
(file)
--- a/
bfd/vms-lib.c
+++ b/
bfd/vms-lib.c
@@
-2108,6
+2108,7
@@
_bfd_vms_lib_build_map (unsigned int nbr_modules,
*res_cnt = map_count;
*res = map;
+ free (syms);
return true;
error_return:
@@
-2394,6
+2395,7
@@
_bfd_vms_lib_write_archive_contents (bfd *arch)
goto err;
}
+ free (symbols);
return true;
input_err: