1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Fix a memory leak.

PR:		ports/156902
Submitted by:	Thorkill <ml@grid.einherjar.de>
Approved by:	maintainer
This commit is contained in:
Wesley Shields 2011-05-30 20:18:19 +00:00
parent a1f729e80f
commit 252f2e8e67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274826
4 changed files with 22 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= collectd
PORTVERSION= 4.10.3
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/

View File

@ -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 */

View File

@ -7,6 +7,7 @@
PORTNAME= collectd
PORTVERSION= 4.10.3
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/

View File

@ -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 */