projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
amqp: plug leak on realloc failure
[collectd.git]
/
src
/
threshold.c
diff --git
a/src/threshold.c
b/src/threshold.c
index
ed83129
..
624ab7a
100644
(file)
--- a/
src/threshold.c
+++ b/
src/threshold.c
@@
-70,7
+70,7
@@
static int ut_threshold_add (const threshold_t *th)
return (-1);
}
- th_copy =
(threshold_t *) malloc (sizeof (threshold_t
));
+ th_copy =
malloc (sizeof (*th_copy
));
if (th_copy == NULL)
{
sfree (name_copy);