projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2045 from rubenk/fix-readme
[collectd.git]
/
src
/
write_riemann.c
diff --git
a/src/write_riemann.c
b/src/write_riemann.c
index
6db3ef5
..
55699d5
100644
(file)
--- a/
src/write_riemann.c
+++ b/
src/write_riemann.c
@@
-362,7
+362,7
@@
wrr_value_to_event(struct riemann_host const *host, /* {{{ */
{
char ds_index[DATA_MAX_NAME_LEN];
{
char ds_index[DATA_MAX_NAME_LEN];
- snprintf(ds_index, sizeof(ds_index), "%
zu"
, index);
+ snprintf(ds_index, sizeof(ds_index), "%
" PRIsz
, index);
riemann_event_string_attribute_add(event, "ds_index", ds_index);
}
riemann_event_string_attribute_add(event, "ds_index", ds_index);
}
@@
-610,6
+610,7
@@
static void wrr_free(void *p) /* {{{ */
wrr_disconnect(host);
wrr_disconnect(host);
+ pthread_mutex_lock(&host->lock);
pthread_mutex_destroy(&host->lock);
sfree(host);
} /* }}} void wrr_free */
pthread_mutex_destroy(&host->lock);
sfree(host);
} /* }}} void wrr_free */