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)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 30 Nov 2015 21:55:49 +0000 (22:55 +0100)
src/bind.c

index 03dfcc7..14c0759 100644 (file)
@@ -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);
   }