[vlc-commits] avcodec/audio: fix frame leak in case of drop

Thomas Guillem git at videolan.org
Thu Dec 22 17:30:07 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Dec 22 17:23:03 2016 +0100| [e7447cc057cc41a8183af25bd0112be3bf4ce1c9] | committer: Thomas Guillem

avcodec/audio: fix frame leak in case of drop

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

 modules/codec/avcodec/audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 6b8b2bb..251ed36 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -462,6 +462,8 @@ end:
 drop:
     if( p_block != NULL )
         block_Release(p_block);
+    if( frame != NULL )
+        av_frame_free( &frame );
     return NULL;
 }
 



More information about the vlc-commits mailing list