Commit 27965f62 authored by Rafaël Carré's avatar Rafaël Carré

Fix memleak

parent e110b99a
...@@ -524,6 +524,7 @@ static int announce_SAPAnnounceDel( sap_handler_t *p_sap, ...@@ -524,6 +524,7 @@ static int announce_SAPAnnounceDel( sap_handler_t *p_sap,
{ {
if( p_session == p_sap->pp_sessions[i]->p_sd ) if( p_session == p_sap->pp_sessions[i]->p_sd )
{ {
free( p_session->psz_sdp );
sap_session_t *p_mysession = p_sap->pp_sessions[i]; sap_session_t *p_mysession = p_sap->pp_sessions[i];
REMOVE_ELEM( p_sap->pp_sessions, REMOVE_ELEM( p_sap->pp_sessions,
p_sap->i_sessions, p_sap->i_sessions,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment