[vlc-commits] commit: x264.c: forgotten free() added (Ilkka Ollakka )

git at videolan.org git at videolan.org
Mon May 10 16:05:17 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon May 10 17:04:46 2010 +0300| [314cd3825c7b20f77bab5fcc9909a7e700d88d3f] | committer: Ilkka Ollakka 

x264.c: forgotten free() added

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

 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 b9ce44d..c7cd151 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -966,6 +966,7 @@ static int  Open ( vlc_object_t *p_this )
         p_sys->param.i_nal_hrd = X264_NAL_HRD_VBR;
     else if( !strcmp( psz_val, "cbr" ) )
         p_sys->param.i_nal_hrd = X264_NAL_HRD_CBR;
+    free( psz_val );
 #endif
 
     //TODO: psz_val == NULL ?



More information about the vlc-commits mailing list