aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-10 02:41:30 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-10 02:41:30 +0600
commit133a2b4ac21e041d7ed66c1d0fa00f7dc5f757af (patch)
tree5ec93e297bc07e3aacdfd01af7cd0d494dea22e0 /youtube_dl/downloader
parentd85187eb747b9d32d44ce4f31985432288f4a4f2 (diff)
[downloader/hls] Properly close stream
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/hls.py1
1 files changed, 1 insertions, 0 deletions
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 @@ class NativeHlsFD(FragmentFD):
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)