MT#61856 sdp.c: properly clean stream params

For the case when we fail in during streams allocation
in `sdp_streams()` we only take care to clean the
main pointer for the stream params, but not about
the subsequent heap allocated stuff like SDES params.

For this purpose we actually have `sp_free()` which takes
care to de-allocate subsequent heap allocated queues.

Change-Id: I326bc91c9194752e901406dc919da9c4ef5aa51a
pull/1126/merge
Donat Zenichev 1 week ago
parent dc2fdfbcf4
commit 8c518d0e1d

@ -2219,7 +2219,7 @@ next:
error:
ilog(LOG_WARNING, "Failed to extract streams from SDP: %s", errstr);
g_free(sp);
sp_free(sp);
return false;
}

Loading…
Cancel
Save