Deleted Added
full compact
41c41
< __FBSDID("$FreeBSD: head/libexec/rtld-elf/sparc64/reloc.c 172708 2007-10-16 19:17:48Z marius $");
---
> __FBSDID("$FreeBSD: head/libexec/rtld-elf/sparc64/reloc.c 208256 2010-05-18 08:55:23Z rdivacky $");
257d256
< int bytes = obj->nchains * sizeof(SymCache);
265,268c264,265
< cache = mmap(NULL, bytes, PROT_READ|PROT_WRITE, MAP_ANON,
< -1, 0);
< if (cache == MAP_FAILED)
< cache = NULL;
---
> cache = calloc(obj->nchains, sizeof(SymCache));
> /* No need to check for NULL here */
279,280c276,277
< if (cache)
< munmap(cache, bytes);
---
> if (cache != NULL)
> free(cache);