[vlc-commits] hds: Fix memory leak on errro

Hugo Beauzée-Luyssen git at videolan.org
Fri Nov 24 16:28:52 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov 24 15:08:24 2017 +0100| [8166c271632c644a07a87ae148d37efb3bddf1b6] | committer: Hugo Beauzée-Luyssen

hds: Fix memory leak on errro

CID #1224537

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

 modules/stream_filter/hds/hds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c
index 0add2b50d3..2e5fb4a6ea 100644
--- a/modules/stream_filter/hds/hds.c
+++ b/modules/stream_filter/hds/hds.c
@@ -963,6 +963,7 @@ static chunk_t* generate_new_chunk(
             if( frun_entry == hds_stream->fragment_run_count - 1 )
             {
                 msg_Err( p_this, "Discontinuity but can't find next timestamp!");
+                chunk_free( chunk );
                 return NULL;
             }
 



More information about the vlc-commits mailing list