Explorar o código

parser/sdp: fixed freeing of ice attributes

Juha Heinanen %!s(int64=12) %!d(string=hai) anos
pai
achega
35bc07e6a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 		}