projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR25993, read of freed memory
[deliverable/binutils-gdb.git]
/
bfd
/
vms-lib.c
diff --git
a/bfd/vms-lib.c
b/bfd/vms-lib.c
index 9504cf4976c0e839607be453d879cc62443ca329..6a8a76ecb034bb9b155dee595d07ca658e2c0ba6 100644
(file)
--- a/
bfd/vms-lib.c
+++ b/
bfd/vms-lib.c
@@
-1452,6
+1452,12
@@
_bfd_vms_lib_get_module (bfd *abfd, unsigned int modidx)
break;
}
bfd_set_filename (res, newname);
+ free (newname);
+ if (bfd_get_filename (res) == NULL)
+ {
+ bfd_close (res);
+ return NULL;
+ }
tdata->cache[modidx] = res;
This page took
0.034694 seconds
and
4
git commands to generate.