[vlc-commits] avcodec: fix memory leak

Hannes Domani git at videolan.org
Thu Aug 28 21:11:28 CEST 2014


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Aug 28 13:38:12 2014 +0200| [8aa841924e2fc8f1e9c47c9ce629032705a71a88] | committer: Jean-Baptiste Kempf

avcodec: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index e75cc21..e5f45c7 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -592,6 +592,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
 
         i_used = avcodec_decode_video2( p_context, p_sys->p_ff_pic,
                                        &b_gotpicture, &pkt );
+        av_free_packet( &pkt );
 
         wait_mt( p_sys );
 



More information about the vlc-commits mailing list