From owner-freebsd-doc Thu Oct 18 15:20:10 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A268B37B407 for ; Thu, 18 Oct 2001 15:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9IMK1L96272; Thu, 18 Oct 2001 15:20:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 683B337B401 for ; Thu, 18 Oct 2001 15:12:14 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9IMCE694618; Thu, 18 Oct 2001 15:12:14 -0700 (PDT) (envelope-from nobody) Message-Id: <200110182212.f9IMCE694618@freefall.freebsd.org> Date: Thu, 18 Oct 2001 15:12:14 -0700 (PDT) From: SUZUKI Koichi To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: docs/31365: malloc.3: malloc(3) and calloc(3) don't free memory, do they? Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31365 >Category: docs >Synopsis: malloc.3: malloc(3) and calloc(3) don't free memory, do they? >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 18 15:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: SUZUKI Koichi >Release: FreeBSD 4.4-stable >Organization: FreeBSD Japanese Manual Translation Project >Environment: >Description: According to the man page of malloc.3 (rev 1.25.2.12): --- DIAGNOSTIC MESSAGES : The following is a brief description of possible warning messages and their meanings: : pointer to wrong page The pointer that malloc() or calloc() is trying to free does not reference a possible page.--- This warning message is output by irealloc() and free_pages() in malloc.c, and these two functions are called by realloc(), free() and reallocf(). (I'm looking src/lib/libc/stdlib/malloc.c,v 1.49.2.3 and src/lib/libc/stdlib/reallocf.c,v 1.3) >How-To-Repeat: >Fix: --- malloc.3.org Thu Oct 18 14:09:23 2001 +++ malloc.3 Thu Oct 18 14:19:36 2001 @@ -420,9 +420,10 @@ has been modified. .It "pointer to wrong page" The pointer that -.Fn malloc +.Fn realloc , +.Fn free or -.Fn calloc +.Fn reallocf is trying to free does not reference a possible page. .It "recursive call" A process has attempted to call an allocation function recursively. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message