diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-18 22:32:10 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-18 22:32:10 +0000 | 
| commit | 49852c0b4fe1ef1dae5d11e7ff01b70c12464e40 (patch) | |
| tree | 629e3bb0864ad6362eea38a594729fb7a8946be2 /hcid/dbus.c | |
| parent | 14c1a4ad4c1fd5b86d3664707d76801013caa741 (diff) | |
Fix accessing free'd memory
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";  | 
