Date: Sun, 12 Feb 2012 02:05:15 +0700 (NOVT) From: Eugene Grosbein <eugen@grosbein.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/165003: [patch] icecast-2.3.2 may leak memory and take extra CPU time Message-ID: <201202111905.q1BJ5F37003098@grosbein.pp.ru> Resent-Message-ID: <201202112040.q1BKe99n048773@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 165003 >Category: ports >Synopsis: [patch] icecast-2.3.2 may leak memory and take extra CPU time >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 11 20:40:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 8.2-STABLE amd64 >Organization: RDTC JSC >Environment: System: FreeBSD grosbein.pp.ru 8.2-STABLE FreeBSD 8.2-STABLE #14: Mon Jan 16 21:33:53 NOVT 2012 root@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV amd64 >Description: icecast2-2.3.2_7,1 built from ports tree may leak memory. When it leaks, its size grows and CPU time grows enormously too. After it reaches 2Gb for i386 system, it is killed with a signal. >How-To-Repeat: Run busy icecast2 server. >Fix: The following 2 years old patch was taken from http://old.nabble.com/Memory-leak-on-Icecast-2.3.2---Debian---td26691536.html It eliminates the problem fixing memory leak. --- src/stats.c.orig 2012-02-11 22:28:24.000000000 +0400 +++ src/stats.c 2012-02-11 22:29:17.000000000 +0400 @@ -973,7 +973,11 @@ if (event->source) { if (show_mount && strcmp (event->source, show_mount) != 0) + { + xmlFree (value); + xmlFree (name); break; + } srcnode = _find_xml_node(event->source, &src_nodes, node); } else >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202111905.q1BJ5F37003098>