projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d8d53
)
netcmd plugin: Free the pthread attr structure.
author
Florian Forster
<octo@collectd.org>
Wed, 12 Sep 2012 16:10:04 +0000
(18:10 +0200)
committer
Florian Forster
<octo@collectd.org>
Tue, 9 Jun 2015 16:52:10 +0000
(17:52 +0100)
src/netcmd.c
patch
|
blob
|
history
diff --git
a/src/netcmd.c
b/src/netcmd.c
index
486dbc8
..
1d1e41b
100644
(file)
--- a/
src/netcmd.c
+++ b/
src/netcmd.c
@@
-1146,8
+1146,8
@@
static void *nc_server_thread (void __attribute__((unused)) *arg) /* {{{ */
pthread_attr_init (&th_attr);
pthread_attr_setdetachstate (&th_attr, PTHREAD_CREATE_DETACHED);
- status = pthread_create (&th, &th_attr, nc_handle_client,
-
conn
);
+ status = pthread_create (&th, &th_attr, nc_handle_client,
conn);
+
pthread_attr_destroy (&th_attr
);
if (status != 0)
{
WARNING ("netcmd plugin: pthread_create failed: %s",