Fix memleak
authorRafaël Carré <funman@videolan.org>
Tue, 20 May 2008 13:05:40 +0000 (15:05 +0200)
committerRafaël Carré <funman@videolan.org>
Tue, 20 May 2008 13:16:28 +0000 (15:16 +0200)
src/stream_output/sap.c

index 83fc499..ba9fdee 100644 (file)
@@ -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];
             REMOVE_ELEM( p_sap->pp_sessions,
                          p_sap->i_sessions,
             sap_session_t *p_mysession = p_sap->pp_sessions[i];
             REMOVE_ELEM( p_sap->pp_sessions,
                          p_sap->i_sessions,