diff options
author | Arek Lichwa <arkadiusz.lichwa@tieto.com> | 2011-07-15 13:38:31 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-28 10:48:44 +0300 |
commit | de16dfe9125f522fff22707632587e5f582d6eb1 (patch) | |
tree | 31e7b14db2d2a9a553afdfa051bff520456b03d8 /sap | |
parent | c5d2a5e5700189fa462ac6cb7523b8ef955ce763 (diff) | |
download | bluez-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.c | 1 |
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); } } |