Fix segfault if config not found
This commit is contained in:
1 parent
73a3013f7c
commit
3b3e5c0de5
1 file changed
+5
-2
@@ -265,8 +265,11 @@ static void cleanup()
|
||||
conftest->hooks->destroy(conftest->hooks);
|
||||
if (conftest->config)
|
||||
{
|
||||
charon->backends->remove_backend(charon->backends,
|
||||
&conftest->config->backend);
|
||||
if (charon->backends)
|
||||
{
|
||||
charon->backends->remove_backend(charon->backends,
|
||||
&conftest->config->backend);
|
||||
}
|
||||
conftest->config->destroy(conftest->config);
|
||||
}
|
||||
free(conftest->suite_dir);
|
||||
|
||||
Reference in new issue
Block a user