dundee: Fix out-of-order free

CALLBACK_WITH_FAILURE used data structure freed just beforehand
wavecom
Denis Kenzior 8 years ago
parent ce0529fcf6
commit a371f46735
  1. 3
      dundee/bluez4.c

@ -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 = {

Loading…
Cancel
Save