Date: Tue, 28 May 2002 00:08:36 -0700 (PDT) From: Alloy Fang <alloyf@promisechina.com> To: freebsd-gnats-submit@FreeBSD.org Subject: gnu/38651: memory leak in gauge (api of libdialog) Message-ID: <200205280708.g4S78aM5012392@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205280708.g4S78aM5012392>