Deleted Added
full compact
25c25
< * $FreeBSD: head/libexec/rtld-elf/i386/reloc.c 157198 2006-03-28 06:09:24Z davidxu $
---
> * $FreeBSD: head/libexec/rtld-elf/i386/reloc.c 208256 2010-05-18 08:55:23Z rdivacky $
122d121
< int bytes = obj->nchains * sizeof(SymCache);
129,130c128,131
< cache = mmap(NULL, bytes, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
< if (cache == MAP_FAILED)
---
> if (obj != obj_rtld) {
> cache = calloc(obj->nchains, sizeof(SymCache));
> /* No need to check for NULL here */
> } else
276,277c277,278
< if (cache)
< munmap(cache, bytes);
---
> if (cache != NULL)
> free(cache);