Do not destroy services when setting filters fails

If the setting of filters for a service fails at startup, it need not be
destroyed as it will be destroyed when MaxScale stops.
This commit is contained in:
Markus Mäkelä 2018-08-08 08:31:39 +03:00
parent cce0aaa7e1
commit 6e79e34dd7
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -3423,12 +3423,6 @@ int create_new_service(CONFIG_CONTEXT *obj)
error_count++;
}
}
if (error_count != 0)
{
service_free(service);
service = nullptr;
}
}
else
{