mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
avdtp_get_internal should not increase the refcount
This commit is contained in:
parent
2edfb968d9
commit
9928a07a99
@ -1673,7 +1673,7 @@ static struct avdtp *avdtp_get_internal(bdaddr_t *src, bdaddr_t *dst)
|
||||
|
||||
session = find_session(src, dst);
|
||||
if (session)
|
||||
return avdtp_ref(session);
|
||||
return session;
|
||||
|
||||
session = g_new0(struct avdtp, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user