summaryrefslogtreecommitdiff
path: root/sap
diff options
context:
space:
mode:
authorArek Lichwa <arkadiusz.lichwa@tieto.com>2011-07-15 13:38:31 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2011-07-28 10:48:44 +0300
commitde16dfe9125f522fff22707632587e5f582d6eb1 (patch)
tree31e7b14db2d2a9a553afdfa051bff520456b03d8 /sap
parentc5d2a5e5700189fa462ac6cb7523b8ef955ce763 (diff)
downloadbluez-de16dfe9125f522fff22707632587e5f582d6eb1.tar.gz
Fix memory leak in sap plugin
Without this patch, when dropping RFCOMM channel to sap server, the component's channel cleanup process doesn't release assigned GIOChannel resources since conn->io is set to NULL before calling sap_conn_remove (which would normally do the g_io_channel_unref).
Diffstat (limited to 'sap')
-rw-r--r--sap/server.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sap/server.c b/sap/server.c
index c55aa6e40..8bd8fe1b8 100644
--- a/sap/server.c
+++ b/sap/server.c
@@ -1122,7 +1122,6 @@ static void sap_io_destroy(void *data)
conn->state == SAP_STATE_GRACEFUL_DISCONNECT)
sap_disconnect_req(NULL, 1);
- conn->io = NULL;
sap_conn_remove(conn);
}
}