Handle out of memory situations.

This commit is contained in:
Alan Modra
2000-09-20 04:20:26 +00:00
parent 6091b433d7
commit b3ea35849f
5 changed files with 33 additions and 14 deletions

View File

@ -672,6 +672,8 @@ bfd_get_unique_section_name (abfd, templat, count)
len = strlen (templat);
sname = bfd_malloc (len + 8);
if (sname == NULL)
return NULL;
strcpy (sname, templat);
num = 1;
if (count != NULL)