[vlc-devel] [PATCH 6/7] vpx: fix memory leak

Hannes Domani ssbssa at yahoo.de
Fri Feb 26 17:49:20 CET 2016


---
 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;
     }
 
-- 
2.7.1



More information about the vlc-devel mailing list