mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 08:44:38 +08:00
Make use of common fail label in pnat_probe
This commit is contained in:
parent
76208a5d26
commit
903804a0f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user