projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e5829
)
notification target: Pass void** to tn_destroy().
author
Florian Forster
<octo@collectd.org>
Wed, 17 Jun 2015 05:34:57 +0000
(07:34 +0200)
committer
Florian Forster
<octo@collectd.org>
Wed, 17 Jun 2015 05:35:43 +0000
(07:35 +0200)
The previous call was bad, resulting in errors in free().
src/target_notification.c
patch
|
blob
|
history
diff --git
a/src/target_notification.c
b/src/target_notification.c
index
b465438
..
7908a29
100644
(file)
--- a/
src/target_notification.c
+++ b/
src/target_notification.c
@@
-176,7
+176,7
@@
static int tn_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
if (status != 0)
{
- tn_destroy ((void *) data);
+ tn_destroy ((void *)
&
data);
return (status);
}