vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Thu May 1 17:12:50 2014 +0200| [42e6f502a588d70c92ae2c7ffe9394455b644cf8] | committer: Francois Cartegnie
stream_filter: smooth: fix memleak > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42e6f502a588d70c92ae2c7ffe9394455b644cf8 --- modules/stream_filter/smooth/utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/stream_filter/smooth/utils.c b/modules/stream_filter/smooth/utils.c index 9329102..cfacc23 100644 --- a/modules/stream_filter/smooth/utils.c +++ b/modules/stream_filter/smooth/utils.c @@ -109,6 +109,11 @@ sms_stream_t * sms_New( void ) sms->qlevels = vlc_array_new(); sms->chunks = vlc_array_new(); + if ( unlikely(!sms->qlevels || !sms->chunks) ) + { + sms_Free( sms ); + return NULL; + } sms->type = UNKNOWN_ES; return sms; } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits