Make use of common fail label in pnat_probe

This commit is contained in:
Johan Hedberg 2010-04-03 16:45:44 +03:00
parent 76208a5d26
commit 903804a0f1

View File

@ -436,8 +436,7 @@ static int pnat_probe(struct btd_adapter *adapter)
if (err != NULL) {
error("Failed to start DUN server: %s", err->message);
g_error_free(err);
g_free(server);
return -EIO;
goto fail;
}
record = dun_record(DUN_CHANNEL);