[vlc-commits] mmal/vout: Fix memory leak

Julian Scheel git at videolan.org
Mon Sep 1 20:44:49 CEST 2014


vlc | branch: master | Julian Scheel <julian at jusst.de> | Fri Aug 29 09:09:38 2014 +0200| [e08f4fc3aa27edf47ce4cdf074b58b40a4ea4977] | committer: Rémi Denis-Courmont

mmal/vout: Fix memory leak

sys->pictures was allocated but not freed.

Signed-off-by: Julian Scheel <julian at jusst.de>
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/hw/mmal/vout.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index 667edf0..901f8bd 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -339,6 +339,7 @@ static void Close(vlc_object_t *object)
     vlc_cond_destroy(&sys->buffer_cond);
     vlc_mutex_destroy(&sys->manage_mutex);
 
+    free(sys->pictures);
     free(sys);
 
     bcm_host_deinit();



More information about the vlc-commits mailing list