mirror of git://git.sysmocom.de/ofono
dundee: Fix out-of-order free
CALLBACK_WITH_FAILURE used data structure freed just beforehand
This commit is contained in:
parent
ce0529fcf6
commit
a371f46735
|
@ -128,9 +128,8 @@ static void bt_connect(struct dundee_device *device,
|
||||||
if (status == 0)
|
if (status == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_free(cbd);
|
|
||||||
|
|
||||||
CALLBACK_WITH_FAILURE(cb, -1, cbd->data);
|
CALLBACK_WITH_FAILURE(cb, -1, cbd->data);
|
||||||
|
g_free(cbd);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dundee_device_driver bluetooth_driver = {
|
struct dundee_device_driver bluetooth_driver = {
|
||||||
|
|
Loading…
Reference in New Issue