diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 07:23:16 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 07:23:16 +0000 |
commit | cfa764640b52854ffa77e962996d716876fdd115 (patch) | |
tree | 281de0e0c8cdb1f914cb9ecc98c6995c64569a2a | |
parent | c92c420f83dda53ebde74ad72cd0a3959d430901 (diff) |
Plug a memory leak when manager_authorize fails
-rw-r--r-- | audio/avdtp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c index be2709da..649e69a4 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -2597,6 +2597,7 @@ static gboolean avdtp_server_cb(GIOChannel *chan, GIOCondition cond, void *data) if (!manager_authorize(&dst, ADVANCED_AUDIO_UUID, auth_cb, session, &session->pending_auth)) { close(cli_sk); + avdtp_unref(session); return TRUE; } |