From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 5 02:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B4D45A9B for ; Mon, 5 Aug 2013 02:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 94894226D for ; Mon, 5 Aug 2013 02:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r752A0df014980 for ; Mon, 5 Aug 2013 02:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r752A03v014979; Mon, 5 Aug 2013 02:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 5 Aug 2013 02:10:00 GMT Resent-Message-Id: <201308050210.r752A03v014979@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ken DEGUCHI Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7AE58A6B for ; Mon, 5 Aug 2013 02:07:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4C77A2253 for ; Mon, 5 Aug 2013 02:07:20 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7527JEd039547 for ; Mon, 5 Aug 2013 02:07:19 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7527Jec039541; Mon, 5 Aug 2013 02:07:19 GMT (envelope-from nobody) Message-Id: <201308050207.r7527Jec039541@oldred.freebsd.org> Date: Mon, 5 Aug 2013 02:07:19 GMT From: Ken DEGUCHI To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181040: [patch] sysutils/conky "diskio" memory leak fix X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2013 02:10:00 -0000 >Number: 181040 >Category: ports >Synopsis: [patch] sysutils/conky "diskio" memory leak fix >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: Mon Aug 05 02:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ken DEGUCHI >Release: 9.2-BETA2 >Organization: TOKOHA University >Environment: FreeBSD lagrange.tokoha-u.ac.jp 9.2-BETA2 FreeBSD 9.2-BETA2 #94 r253757M: Mon Jul 29 16:13:02 JST 2013 root@lagrange.tokoha-u.ac.jp:/usr/obj/usr/src/sys/LAGRANGE amd64 >Description: Conky has a memory leak related to "diskio". When "diskio" variable is enabled, memory consumption is increased by about 8kB every second. This is caused by "free" the wrong pointer in the function update_diskio in "src/freebsd.c". This attached patch is modified to free the correct pointer as follows. free(statinfo_cur.dinfo); -> free(statinfo_cur.dinfo->mem_ptr); >How-To-Repeat: When "diskio" variable is enabled, memory consumption is increased by about 8kB every second. >Fix: This attached patch is modified to free the correct pointer as follows. free(statinfo_cur.dinfo); -> free(statinfo_cur.dinfo->mem_ptr); Patch attached with submission follows: begin 644 patch-diskio.txt M+2TM(&9I;&5S+W!A=&-H+7-R8RUF7!E7,O=7-EF4@/2`H:6YF;RYC<'5?8V]U;G0@*R`Q*2`J M('-I>F5O9BAS=')U8W0@8W!U7VEN9F\I.PHK0$`@+3Release-Note: >Audit-Trail: >Unformatted: