From 8c518d0e1d85fa0ac78a22662550ebffcb37f53f Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 7 May 2026 22:02:04 +0200 Subject: [PATCH] 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 --- daemon/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 665ec6cc1..5c48fc40e 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -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; }