vlc | branch: master | Ilkka Ollakka <[email protected]> | Mon Jul  5 10:00:10 
2010 +0300| [693cfd62cda56a287661faf6cabd55d35e48746d] | committer: Ilkka 
Ollakka 

x264: forgotten free() spotted by ivoire

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

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

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 7b6b809..c88635a 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -919,6 +919,7 @@ static int  Open ( vlc_object_t *p_this )
         p_sys->param.i_open_gop = X264_OPEN_GOP_NORMAL;
     else if( !strcmp( psz_val, "bluray" ) )
         p_sys->param.i_open_gop = X264_OPEN_GOP_BLURAY;
+    free( psz_val );
 #endif
     i_val = var_GetInteger( p_enc, SOUT_CFG_PREFIX "bframes" );
     if( i_val >= 0 && i_val <= 16 && i_val != 3 )

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to