Browse Source

parser/sdp: fixed freeing of ice attributes

Juha Heinanen 12 năm trước cách đây
mục cha
commit
35bc07e6a1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      parser/sdp/sdp.c

+ 1 - 1
parser/sdp/sdp.c

@@ -810,7 +810,7 @@ void free_sdp(sdp_info_t** _sdp)
 			while (l_stream->ice_attr) {
 			    tmp = l_stream->ice_attr->next;
 			    pkg_free(l_stream->ice_attr);
-			    l_stream->ice_attr->next = tmp;
+			    l_stream->ice_attr = tmp;
 			}
 			pkg_free(l_stream);
 		}