From owner-freebsd-bugs Sat Nov 24 20:40:13 2001 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 1BCF137B416 for ; Sat, 24 Nov 2001 20:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAP4e1B29064; Sat, 24 Nov 2001 20:40:01 -0800 (PST) (envelope-from gnats) Received: from p3.my.net (215ppp.telegraph.spb.ru [213.158.1.215]) by hub.freebsd.org (Postfix) with ESMTP id 0D8F437B416 for ; Sat, 24 Nov 2001 20:33:44 -0800 (PST) Received: (from root@localhost) by p3.my.net (8.11.6/8.11.3) id fANJ4bK01246; Fri, 23 Nov 2001 22:04:37 +0300 (MSK) (envelope-from root) Message-Id: <200111231904.fANJ4bK01246@p3.my.net> Date: Fri, 23 Nov 2001 22:04:37 +0300 (MSK) From: Igor Pokrovsky Reply-To: Igor Pokrovsky To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: gnu/32260: Memory deallocation bug in 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: 32260 >Category: gnu >Synopsis: Memory deallocation bug in libdialog >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 24 20:40:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Igor Pokrovsky >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD p3.my.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Wed Nov 21 20:26:00 MSK 2001 root@p3.my.net:/usr/src/sys/compile/KERNEL i386 >Description: I have got "out of swap space" errors, when using function 'dialog_gauge' from libdialog. >How-To-Repeat: Try to call function 'dialog_gauge' about 100000 times, and you'll see how your swap size is growing. I'm using libdialog from 4.4 STABLE (got from CVS). >Fix: The only change required is to insert releasing window memory function (delwin(gw)) just before last line, containing 'return', of function 'dialog_gauge'. Here is also the patch *** gauge.old Fri Nov 23 21:04:54 2001 --- gauge.c Fri Nov 23 21:04:30 2001 *************** *** 67,72 **** --- 67,74 ---- wrefresh(gw); + delwin(gw); + return; } /* dialog_gauge() */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message