From nobody@www.freebsd.org  Tue May 28 00:08:37 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 4B1A737B400
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <alloyf@promisechina.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: memory leak in gauge (api of libdialog)
X-Send-Pr-Version: www-1.0

>Number:         38651
>Category:       gnu
>Synopsis:       memory leak in gauge (api of libdialog)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 28 00:10:03 PDT 2002
>Closed-Date:    Tue May 28 03:25:35 PDT 2002
>Last-Modified:  Tue May 28 03:25:35 PDT 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Tue May 28 03:21:13 PDT 2002 
State-Changed-Why:  
Already fixed in the following revisions of libdialog/gauge.c: 
rev.1.3 in -current 
rev.1.12.2.1 in 4.5-RELEASE and later versions of -stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38651 
>Unformatted:
