correct free of sdp service record on client disconnect

This commit is contained in:
matthias.ringwald 2010-06-13 20:17:00 +00:00
parent eace711393
commit fc7d768736

View File

@ -183,7 +183,7 @@ void sdp_unregister_services_for_connection(connection_t *connection){
while (it->next){
if (((service_record_item_t *)it->next)->connection == connection){
it->next = it->next->next;
free(it);
free(it->next);
} else {
it = it->next;
}