aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/collectd
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2011-05-31 04:18:19 +0800
committerwxs <wxs@FreeBSD.org>2011-05-31 04:18:19 +0800
commit2f554fdeb34b61840ed92004f68d0d9cac062ef1 (patch)
treee794ad4cdf1973473a351acf45871da485deffd1 /net-mgmt/collectd
parenta97d85a2c942a6128f52d55ea0511abf269a6b92 (diff)
downloadfreebsd-ports-gnome-2f554fdeb34b61840ed92004f68d0d9cac062ef1.tar.gz
freebsd-ports-gnome-2f554fdeb34b61840ed92004f68d0d9cac062ef1.tar.zst
freebsd-ports-gnome-2f554fdeb34b61840ed92004f68d0d9cac062ef1.zip
- Fix a memory leak.
PR: ports/156902 Submitted by: Thorkill <ml@grid.einherjar.de> Approved by: maintainer
Diffstat (limited to 'net-mgmt/collectd')
-rw-r--r--net-mgmt/collectd/Makefile1
-rw-r--r--net-mgmt/collectd/files/patch-src__meta_data.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/net-mgmt/collectd/Makefile b/net-mgmt/collectd/Makefile
index 2184730a1db8..0386fb175af2 100644
--- a/net-mgmt/collectd/Makefile
+++ b/net-mgmt/collectd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= collectd
PORTVERSION= 4.10.3
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/
diff --git a/net-mgmt/collectd/files/patch-src__meta_data.c b/net-mgmt/collectd/files/patch-src__meta_data.c
new file mode 100644
index 000000000000..c90d50e452aa
--- /dev/null
+++ b/net-mgmt/collectd/files/patch-src__meta_data.c
@@ -0,0 +1,10 @@
+--- ./src/meta_data.c.orig 2011-05-30 06:58:07.055492500 -0400
++++ ./src/meta_data.c 2011-05-30 06:59:10.383490225 -0400
+@@ -215,6 +215,7 @@
+ return;
+
+ md_entry_free (md->head);
++ pthread_mutex_destroy(&md->lock);
+ free (md);
+ } /* }}} void meta_data_destroy */
+