dundee: Fix out-of-order free
CALLBACK_WITH_FAILURE used data structure freed just beforehand
This commit is contained in:
@@ -128,9 +128,8 @@ static void bt_connect(struct dundee_device *device,
|
||||
if (status == 0)
|
||||
return;
|
||||
|
||||
g_free(cbd);
|
||||
|
||||
CALLBACK_WITH_FAILURE(cb, -1, cbd->data);
|
||||
g_free(cbd);
|
||||
}
|
||||
|
||||
struct dundee_device_driver bluetooth_driver = {
|
||||
|
||||
Reference in New Issue
Block a user