[vlc-devel] commit: Fix memleak ( Rafaël Carré )

git version control git at videolan.org
Tue May 20 15:16:14 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue May 20 13:48:10 2008 +0200| [a5ff1f926dc6ae6bf2db641b2025a4b5ffdecdf5]

Fix memleak

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

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

diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
index 15076da..59ae9e3 100644
--- a/modules/stream_out/standard.c
+++ b/modules/stream_out/standard.c
@@ -429,6 +429,7 @@ static int Open( vlc_object_t *p_this )
             p_sys->p_session =
                 sout_AnnounceRegisterSDP (p_sout, psz_sdp, dhost, p_method);
             sout_MethodRelease (p_method);
+            free( psz_sdp );
         }
         free (dhost);
     }




More information about the vlc-devel mailing list