projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b2a769
)
bind: tmp doesn't point to start of allocated memory
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 18:45:42 +0000
(19:45 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 18:45:42 +0000
(19:45 +0100)
src/bind.c
patch
|
blob
|
history
diff --git
a/src/bind.c
b/src/bind.c
index
06b4ace
..
9fb3ec4
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-1666,7
+1666,7
@@
static int bind_config_add_view (oconfig_item_t *ci) /* {{{ */
if (tmp->name == NULL)
{
ERROR ("bind plugin: strdup failed.");
-
free (tmp
);
+
sfree (views
);
return (-1);
}