projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re: Use __asm__ rather than asm in ld testsuite
[deliverable/binutils-gdb.git]
/
bfd
/
vms-lib.c
diff --git
a/bfd/vms-lib.c
b/bfd/vms-lib.c
index 9504cf4976c0e839607be453d879cc62443ca329..f000bc2a8f1fbf08fd9db209a0d872deb8090dc0 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);
break;
}
bfd_set_filename (res, newname);
+ free (newname);
+ if (bfd_get_filename (res) == NULL)
+ {
+ bfd_close (res);
+ return NULL;
+ }
tdata->cache[modidx] = res;
tdata->cache[modidx] = res;
@@
-2039,8
+2045,7
@@
_bfd_vms_lib_build_map (unsigned int nbr_modules,
{
if (storage > syms_max)
{
{
if (storage > syms_max)
{
- if (syms_max > 0)
- free (syms);
+ free (syms);
syms_max = storage;
syms = (asymbol **) bfd_malloc (syms_max);
if (syms == NULL)
syms_max = storage;
syms = (asymbol **) bfd_malloc (syms_max);
if (syms == NULL)
@@
-2091,10
+2096,8
@@
_bfd_vms_lib_build_map (unsigned int nbr_modules,
return TRUE;
error_return:
return TRUE;
error_return:
- if (syms_max > 0)
- free (syms);
- if (map != NULL)
- free (map);
+ free (syms);
+ free (map);
return FALSE;
}
return FALSE;
}
This page took
0.040819 seconds
and
4
git commands to generate.