vlc | branch: master | Hannes Domani <[email protected]> | Fri Feb 26 17:49:20 
2016 +0100| [cf7ca5fea539dd1f1d2867dc67b5970518595cae] | committer: 
Jean-Baptiste Kempf

vpx: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

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

diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
index 0b86489..a028611 100644
--- a/modules/codec/vpx.c
+++ b/modules/codec/vpx.c
@@ -306,6 +306,7 @@ static int OpenEncoder(vlc_object_t *p_this)
         break;
 #endif
     default:
+        free(p_sys);
         return VLC_EGENERIC;
     }
 

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

Reply via email to