[vlc-devel] commit: vmem: small memory leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jun 16 21:19:40 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Jun 16 22:21:36 2008 +0300| [514a804f231641c2ca86d96281939df2a3843721]

vmem: small memory leak

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

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

diff --git a/modules/video_output/vmem.c b/modules/video_output/vmem.c
index 3e169cf..5de7f09 100644
--- a/modules/video_output/vmem.c
+++ b/modules/video_output/vmem.c
@@ -145,6 +145,7 @@ static int Init( vout_thread_t *p_vout )
         if( strlen( psz_chroma ) < 4 )
         {
             msg_Err( p_vout, "vmem-chroma should be 4 characters long" );
+            free( psz_chroma );
             return VLC_EGENERIC;
         }
         i_chroma = VLC_FOURCC( psz_chroma[0], psz_chroma[1],




More information about the vlc-devel mailing list