From owner-svn-ports-all@FreeBSD.ORG Wed Sep 10 16:32:25 2014 Return-Path: Delivered-To: svn-ports-all@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 ESMTPS id 8BB25B94; Wed, 10 Sep 2014 16:32:25 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5E3721C06; Wed, 10 Sep 2014 16:32:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8AGWPX0056027; Wed, 10 Sep 2014 16:32:25 GMT (envelope-from danilo@FreeBSD.org) Received: (from danilo@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8AGWPs0056025; Wed, 10 Sep 2014 16:32:25 GMT (envelope-from danilo@FreeBSD.org) Message-Id: <201409101632.s8AGWPs0056025@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: danilo set sender to danilo@FreeBSD.org using -f From: Danilo Egea Gondolfo Date: Wed, 10 Sep 2014 16:32:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r367872 - in head/sysutils/xfce4-diskperf-plugin: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2014 16:32:25 -0000 Author: danilo Date: Wed Sep 10 16:32:24 2014 New Revision: 367872 URL: http://svnweb.freebsd.org/changeset/ports/367872 QAT: https://qat.redports.org/buildarchive/r367872/ Log: - Fix a memory leak due a improper memset Modified: head/sysutils/xfce4-diskperf-plugin/Makefile head/sysutils/xfce4-diskperf-plugin/files/patch-panel-plugin__devperf.c Modified: head/sysutils/xfce4-diskperf-plugin/Makefile ============================================================================== --- head/sysutils/xfce4-diskperf-plugin/Makefile Wed Sep 10 16:15:09 2014 (r367871) +++ head/sysutils/xfce4-diskperf-plugin/Makefile Wed Sep 10 16:32:24 2014 (r367872) @@ -3,7 +3,7 @@ PORTNAME= xfce4-diskperf-plugin PORTVERSION= 2.5.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils xfce MASTER_SITES= ${MASTER_SITE_XFCE} MASTER_SITE_SUBDIR= src/panel-plugins/${PORTNAME}/${PORTVERSION:R} Modified: head/sysutils/xfce4-diskperf-plugin/files/patch-panel-plugin__devperf.c ============================================================================== --- head/sysutils/xfce4-diskperf-plugin/files/patch-panel-plugin__devperf.c Wed Sep 10 16:15:09 2014 (r367871) +++ head/sysutils/xfce4-diskperf-plugin/files/patch-panel-plugin__devperf.c Wed Sep 10 16:32:24 2014 (r367872) @@ -1,6 +1,6 @@ ---- ./panel-plugin/devperf.c.orig 2012-04-03 10:22:41.000000000 -0300 -+++ ./panel-plugin/devperf.c 2013-09-11 17:45:00.000000000 -0300 -@@ -225,6 +225,94 @@ +--- panel-plugin/devperf.c.orig 2012-04-03 13:22:41 UTC ++++ panel-plugin/devperf.c +@@ -225,6 +225,93 @@ /************************** Linux End ***************/ @@ -22,8 +22,13 @@ + +#define MAXNAMELEN 256 + ++struct statinfo stats; ++struct devinfo dinfo; ++ +int DevPerfInit () +{ ++ stats.dinfo = &dinfo; ++ + return (0); +} + @@ -36,17 +41,11 @@ +{ + struct timeval tv; + struct timespec ts; -+ struct statinfo stats; -+ struct devinfo dinfo; + struct devstat dev; + kvm_t *kd = NULL; + int i, found = 0; + char *check_dev = (char *) p_pvDevice; + -+ memset(&stats, 0, sizeof(stats)); -+ memset(&dinfo, 0, sizeof(dinfo)); -+ stats.dinfo = &dinfo; -+ + if(devstat_getdevs(kd, &stats) == -1) { + syslog(0, "DISKPERF: getdevs fail"); + }