projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a503a
)
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
Marc Fournier
<marc.fournier@camptocamp.com>
Mon, 30 Nov 2015 21:55:49 +0000
(22:55 +0100)
src/bind.c
patch
|
blob
|
history
diff --git
a/src/bind.c
b/src/bind.c
index
03dfcc7
..
14c0759
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-1311,7
+1311,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);
}