Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2014 09:42:57 +0900
From:      Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp>
To:        <bug-followup@FreeBSD.org>, <kdeguchi@sz.tokoha-u.ac.jp>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/181040: [patch] sysutils/conky "diskio" memory leak fix
Message-ID:  <20140131094257.70f572363de0d5e6da42813f@sz.tokoha-u.ac.jp>

next in thread | raw e-mail | index | archive | help
--Multipart=_Fri__31_Jan_2014_09_42_57_+0900_7L.aInoz/VL6v/Pp
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

conky "diskio" memory leak in FreeBSD.
Please commit this patch.

--Multipart=_Fri__31_Jan_2014_09_42_57_+0900_7L.aInoz/VL6v/Pp
Content-Type: text/plain; name="conky_diskio_memory_leak_fix_patch.txt"
Content-Disposition: attachment;
	filename="conky_diskio_memory_leak_fix_patch.txt"
Content-Transfer-Encoding: 7bit

--- files/patch-src-freebsd.c.orig	2013-02-09 09:22:09.533378950 +0900
+++ files/patch-src-freebsd.c	2013-08-05 09:03:06.000000000 +0900
@@ -1,5 +1,5 @@
---- src/freebsd.c.orig	2012-05-04 00:08:27.000000000 +0300
-+++ src/freebsd.c	2012-12-04 11:09:20.000000000 +0200
+--- src/freebsd.c.orig	2012-05-04 06:08:27.000000000 +0900
++++ src/freebsd.c	2013-08-05 09:02:37.000000000 +0900
 @@ -38,6 +38,11 @@
  #include <sys/types.h>
  #include <sys/user.h>
@@ -53,3 +53,12 @@
  
  	if (!global_cpu) {
  		malloc_cpu_size = (info.cpu_count + 1) * sizeof(struct cpu_info);
+@@ -702,7 +706,7 @@
+ 		free(dev_select);
+ 	}
+ 
+-	free(statinfo_cur.dinfo);
++	free(statinfo_cur.dinfo->mem_ptr);
+ 	return 0;
+ }
+ 

--Multipart=_Fri__31_Jan_2014_09_42_57_+0900_7L.aInoz/VL6v/Pp--



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