[vlc-devel] commit: Fix memleak. ( Rémi Duraffort )

git version control git at videolan.org
Wed Aug 13 23:57:02 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Aug 13 23:59:51 2008 +0200| [e6a6bf4c8ae8ac17af1446f0a1c166368fb95ebb] | committer: Rémi Duraffort 

Fix memleak.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6a6bf4c8ae8ac17af1446f0a1c166368fb95ebb
---

 modules/stream_out/rtp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index c3e8dde..c7facb5 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -1014,6 +1014,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
         {
             id->psz_enc = "MP2P";
         }
+        free( psz );
     }
     else
     switch( p_fmt->i_codec )




More information about the vlc-devel mailing list