[vlc-commits] avi: fix leak

Rémi Denis-Courmont git at videolan.org
Tue Nov 28 17:42:09 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 27 19:48:27 2017 +0200| [fb6f0b899a0212c7775ce82b01bbbe2ef7035467] | committer: Rémi Denis-Courmont

avi: fix leak

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

 modules/demux/avi/avi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 21bf37613e..9708cf8d3d 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -689,6 +689,7 @@ static int Open( vlc_object_t * p_this )
                      * directly after BITMAPINFORHEADER in the BITMAPINFO structure */
                     if( tk->fmt.i_extra > 0 )
                     {
+                        free( tk->fmt.video.p_palette );
                         tk->fmt.video.p_palette = calloc( 1, sizeof(video_palette_t) );
                         if( likely(tk->fmt.video.p_palette) )
                         {



More information about the vlc-commits mailing list