fix of the bug fix, courtesy of Robert Varga

This commit is contained in:
Andreas Steffen
2007-07-02 17:48:30 +00:00
parent 2f806bd866
commit fdd32ee6e5
+4 -1
View File
@@ -240,7 +240,10 @@ int main (int argc, char **argv)
if (cfg == NULL || cfg->err > 0)
{
plog("unable to start strongSwan -- fatal errors in config");
confread_free(cfg);
if (cfg)
{
confread_free(cfg);
}
exit(1);
}