[vlc-commits] codec: vaapi: fix leak (cid #1048909)

Francois Cartegnie git at videolan.org
Thu Apr 17 14:11:36 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 16 23:37:58 2014 +0200| [f80a71a9f8d35d2fc4d7f50bff003456e497224d] | committer: Francois Cartegnie

codec: vaapi: fix leak (cid #1048909)

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

 modules/codec/avcodec/vaapi.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index ed77a50..746a6fc 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -146,6 +146,7 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
         i_surface_count = 16 + i_thread_count + 2;
         break;;
     default:
+        free( sys );
         return VLC_EGENERIC;
     }
 



More information about the vlc-commits mailing list