.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.53 2008/07/28 19:53:03 otto Exp $
+.\" $OpenBSD: malloc.3,v 1.54 2008/08/07 18:41:47 otto Exp $
.\"
-.Dd $Mdocdate: July 28 2008 $
+.Dd $Mdocdate: August 7 2008 $
.Dt MALLOC 3
.Os
.Sh NAME
an unallocated pointer was made.
.It Dq chunk is already free
There was an attempt to free a chunk that had already been freed.
-.It Dq modified (chunk-) pointer
+.It Dq modified chunk-pointer
The pointer passed to
.Fn free
or
-/* $OpenBSD: malloc.c,v 1.92 2008/07/28 04:56:38 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.93 2008/08/07 18:41:47 otto Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
*
if (psz > malloc_cache) {
if (munmap(p, sz))
- wrterror("unmap");
+ wrterror("munmap");
malloc_used -= sz;
return;
}
}
/* avoid pages containing meta info to end up in cache */
if (munmap(d->r, d->regions_total * sizeof(struct region_info)))
- wrterror("omalloc_grow munmap");
+ wrterror("munmap");
else
malloc_used -= d->regions_total * sizeof(struct region_info);
d->regions_free = d->regions_free + d->regions_total;
i = ((uintptr_t)ptr & MALLOC_PAGEMASK) >> info->shift;
if ((uintptr_t)ptr & ((1UL << (info->shift)) - 1)) {
- wrtwarning("modified (chunk-) pointer");
+ wrtwarning("modified chunk-pointer");
return;
}
if (info->bits[i / MALLOC_BITS] & (1UL << (i % MALLOC_BITS))) {