Bash-4.4 distribution sources and documentation

This commit is contained in:
Chet Ramey
2016-09-15 16:59:08 -04:00
parent 30a978b7d8
commit a0c0a00fc4
588 changed files with 130746 additions and 80164 deletions
+14 -2
View File
@@ -978,7 +978,11 @@ _nl_load_domain (domain_file, domainbinding)
data = (struct mo_file_header *) malloc (size);
if (data == NULL)
return;
{
if (use_mmap == 0)
close (fd);
return;
}
to_read = size;
read_ptr = (char *) data;
@@ -1019,7 +1023,15 @@ _nl_load_domain (domain_file, domainbinding)
domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain));
if (domain == NULL)
return;
{
#ifdef HAVE_MMAP
if (use_mmap)
munmap ((caddr_t) data, size);
else
#endif
free (data);
return;
}
domain_file->data = domain;
domain->data = (char *) data;