vlc | branch: master | Hannes Domani <[email protected]> | Sun Feb 15 19:18:08 
2015 +0100| [c3a908c4d1cedbb7d6b2efbe037380dc80528267] | committer: Rémi 
Denis-Courmont

x264: fix memory leak

Signed-off-by: Rémi Denis-Courmont <[email protected]>

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

 modules/codec/x264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 7130296..cb574a4 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1150,8 +1150,8 @@ static int  Open ( vlc_object_t *p_this )
        {
            p_sys->param.analyse.i_me_method = X264_ME_TESA;
        }
-       free( psz_val );
     }
+    free( psz_val );
 
     i_val = var_GetInteger( p_enc, SOUT_CFG_PREFIX "merange" );
     if( i_val >= 0 && i_val <= 64 && i_val != 16 )

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

Reply via email to