Deleted Added
full compact
4c4
< __FBSDID("$FreeBSD: head/libexec/rtld-elf/arm/reloc.c 153515 2005-12-18 19:43:33Z kan $");
---
> __FBSDID("$FreeBSD: head/libexec/rtld-elf/arm/reloc.c 208256 2010-05-18 08:55:23Z rdivacky $");
248d247
< int bytes = obj->nchains * sizeof(SymCache);
258,261c257,259
< 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 */
>
269,271c267,268
< if (cache) {
< munmap(cache, bytes);
< }
---
> if (cache != NULL)
> free(cache);