diff --git a/ChangeLog b/ChangeLog index 561041e..74f9e29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ Version 1.6.16 ******************************************************************************* +2012-03-05 Fabrice Fontaine + + Remove unused currentDevice variable in removeServiceTable + + currentDevice is not used in this function. + 2012-03-05 Fabrice Fontaine SF Bug Tracker id 3496581 - Memory leak in getServiceList diff --git a/upnp/src/genlib/service_table/service_table.c b/upnp/src/genlib/service_table/service_table.c index c48fc69..beb71e2 100644 --- a/upnp/src/genlib/service_table/service_table.c +++ b/upnp/src/genlib/service_table/service_table.c @@ -914,7 +914,6 @@ removeServiceTable( IXML_Node * node, IXML_Node *currentUDN = NULL; DOMString UDN = NULL; IXML_NodeList *deviceList = NULL; - IXML_Node *currentDevice = NULL; service_info *current_service = NULL; service_info *start_search = NULL; service_info *prev_service = NULL; @@ -930,7 +929,6 @@ removeServiceTable( IXML_Node * node, if( deviceList != NULL ) { NumOfDevices = ixmlNodeList_length( deviceList ); for( i = 0; i < NumOfDevices; i++ ) { - currentDevice = ixmlNodeList_item( deviceList, i ); if( ( start_search ) && ( ( getSubElement( "UDN", node, ¤tUDN ) ) && ( UDN = getElementValue( currentUDN ) ) ) ) {