[vlc-commits] smf: fix leak on invalid input

Rémi Denis-Courmont git at videolan.org
Fri Oct 28 15:39:37 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 28 16:39:28 2016 +0300| [e1f4fa7bc0b1232444a3d324b004b0d6ea4c8b7b] | committer: Rémi Denis-Courmont

smf: fix leak on invalid input

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

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

diff --git a/modules/demux/smf.c b/modules/demux/smf.c
index 125aaff..77e0a5e 100644
--- a/modules/demux/smf.c
+++ b/modules/demux/smf.c
@@ -337,6 +337,7 @@ int HandleMessage (demux_t *p_demux, mtrk_t *tr, es_out_t *out)
         if (datalen == 0)
         {
             msg_Err (p_demux, "malformatted MIDI event");
+            block_Release(block);
             return -1; /* implicit running status requires non-empty payload */
         }
 



More information about the vlc-commits mailing list