diff options
author | wxs <wxs@FreeBSD.org> | 2011-05-31 04:18:19 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2011-05-31 04:18:19 +0800 |
commit | 2f554fdeb34b61840ed92004f68d0d9cac062ef1 (patch) | |
tree | e794ad4cdf1973473a351acf45871da485deffd1 | |
parent | a97d85a2c942a6128f52d55ea0511abf269a6b92 (diff) | |
download | freebsd-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
-rw-r--r-- | net-mgmt/collectd/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/collectd/files/patch-src__meta_data.c | 10 | ||||
-rw-r--r-- | net-mgmt/collectd5/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/collectd5/files/patch-src__meta_data.c | 10 |
4 files changed, 22 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 */ + diff --git a/net-mgmt/collectd5/Makefile b/net-mgmt/collectd5/Makefile index 2184730a1db8..0386fb175af2 100644 --- a/net-mgmt/collectd5/Makefile +++ b/net-mgmt/collectd5/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/collectd5/files/patch-src__meta_data.c b/net-mgmt/collectd5/files/patch-src__meta_data.c new file mode 100644 index 000000000000..c90d50e452aa --- /dev/null +++ b/net-mgmt/collectd5/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 */ + |