Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2001 22:04:37 +0300 (MSK)
From:      Igor Pokrovsky <tiamat@telegraph.spb.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/32260: Memory deallocation bug in libdialog
Message-ID:  <200111231904.fANJ4bK01246@p3.my.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111231904.fANJ4bK01246>