Commit 99dffe66 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

hls: Fixing a memory leak.

(cherry picked from commit 3844c07d1036d0e769c03327102ce30c89aafd4d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 58f42e28
...@@ -274,6 +274,7 @@ static hls_stream_t *hls_Copy(hls_stream_t *src, const bool b_cp_segments) ...@@ -274,6 +274,7 @@ static hls_stream_t *hls_Copy(hls_stream_t *src, const bool b_cp_segments)
return NULL; return NULL;
} }
vlc_UrlParse(&dst->url, uri, 0); vlc_UrlParse(&dst->url, uri, 0);
free( uri );
if (!b_cp_segments) if (!b_cp_segments)
dst->segments = vlc_array_new(); dst->segments = vlc_array_new();
vlc_mutex_init(&dst->lock); vlc_mutex_init(&dst->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment