From owner-freebsd-bugs Tue May 28 0:10:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 88CF337B401 for ; Tue, 28 May 2002 00:10:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4S7A4140590; Tue, 28 May 2002 00:10:04 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 4B1A737B400 for ; Tue, 28 May 2002 00:08:37 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4S78ahG012393 for ; Tue, 28 May 2002 00:08:36 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g4S78aM5012392; Tue, 28 May 2002 00:08:36 -0700 (PDT) Message-Id: <200205280708.g4S78aM5012392@www.freebsd.org> Date: Tue, 28 May 2002 00:08:36 -0700 (PDT) From: Alloy Fang To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: gnu/38651: memory leak in gauge (api of libdialog) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38651 >Category: gnu >Synopsis: memory leak in gauge (api of libdialog) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 28 00:10:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Alloy Fang >Release: 4.2(mostly) and 4.3 >Organization: PROMISE TECHNOLOGY, CHINA >Environment: FreeBSD AlloyTest.PromiseCN.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Tue Jan 15 15:16:07 CST 2002 root@AlloyTest.PromiseCN.com:/usr/src/sys/compile/ALLOY i386 >Description: in /usr/src/gnu/lib/libdialog/gauge.c, there is a "newwin()" at the beginning of function dialog_gauge(), but no "delwin()" at the end. >How-To-Repeat: in /usr/share/examples/libdialog/gauge.c, change "usleep(30000)" to "usleep(3000000)", compile and run, watch the memory usage, we will find it is growing continuously. >Fix: add a "delwin(gw);" at the end of function dialog_gauge() in /usr/src/gnu/lib/libdialog/gauge.c. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message