From 133a2b4ac21e041d7ed66c1d0fa00f7dc5f757af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Thu, 10 Sep 2015 02:41:30 +0600 Subject: [PATCH] [downloader/hls] Properly close stream --- youtube_dl/downloader/hls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py index 71aafdc73..b2436e732 100644 --- a/youtube_dl/downloader/hls.py +++ b/youtube_dl/downloader/hls.py @@ -92,6 +92,7 @@ def real_download(self, filename, info_dict): return False down, frag_sanitized = sanitize_open(frag_filename, 'rb') ctx['dest_stream'].write(down.read()) + down.close() frags_filenames.append(frag_sanitized) self._finish_frag_download(ctx)