diff options
Diffstat (limited to 'hcid/dbus.c')
-rw-r--r-- | hcid/dbus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hcid/dbus.c b/hcid/dbus.c index 365af30e..162745cd 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -752,8 +752,9 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, const u l = slist_find(pdata->pending_bondings, peer, pending_bonding_cmp); if (l) { + void *d = l->data; pdata->pending_bondings = slist_remove(pdata->pending_bondings, l->data); - free(l->data); + free(d); if (!status) { const char *name = "BondingCreated"; |