bind: tmp doesn't point to start of allocated memory
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 18:45:42 +0000 (19:45 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 18:45:42 +0000 (19:45 +0100)
src/bind.c

index 06b4ace..9fb3ec4 100644 (file)
@@ -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);
   }