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
/
curl.c
diff --git
a/src/curl.c
b/src/curl.c
index
4bb58e2
..
ea03ce2
100644
(file)
--- a/
src/curl.c
+++ b/
src/curl.c
@@
-108,7
+108,7
@@
static size_t cc_curl_callback (void *buf, /* {{{ */
size_t temp_size;
temp_size = wp->buffer_fill + len + 1;
- temp =
(char *)
realloc (wp->buffer, temp_size);
+ temp = realloc (wp->buffer, temp_size);
if (temp == NULL)
{
ERROR ("curl plugin: realloc failed.");