hds: fix memory leak (cid #1224537)
authorTristan Matthews <le.businessman@gmail.com>
Fri, 25 Jul 2014 08:32:11 +0000 (04:32 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Fri, 25 Jul 2014 08:32:11 +0000 (04:32 -0400)
modules/stream_filter/hds/hds.c

index 37ec06a..ae75994 100644 (file)
@@ -920,6 +920,7 @@ static chunk_t* generate_new_chunk(
     if( frun_entry == hds_stream->fragment_run_count )
     {
         msg_Err( p_this, "Couldn'd find the fragment run!" );
+        chunk_free( chunk );
         return NULL;
     }