Code

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 03dfcc77cd7bf322b7576fe288f0bbb3c6e14191..14c075924d754deee39313f4c0b07e63ced1cd20 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);
   }