diff options
Diffstat (limited to 'android/avdtp.c')
-rw-r--r-- | android/avdtp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/android/avdtp.c b/android/avdtp.c index 908c0cac6..bab305bed 100644 --- a/android/avdtp.c +++ b/android/avdtp.c @@ -3398,10 +3398,7 @@ struct avdtp_local_sep *avdtp_register_sep(struct queue *lseps, uint8_t type, DBG("SEP %p registered: type:%d codec:%d seid:%d", sep, sep->info.type, sep->codec, sep->info.seid); - if (!queue_push_tail(lseps, sep)) { - g_free(sep); - return NULL; - } + queue_push_tail(lseps, sep); return sep; } |