mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
avformat/hlsenc: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
26c72d2941
commit
bf3126db6a
@ -486,7 +486,7 @@ static int hls_write_trailer(struct AVFormatContext *s)
|
||||
|
||||
hls_free_segments(hls->segments);
|
||||
hls_free_segments(hls->old_segments);
|
||||
avio_close(hls->pb);
|
||||
avio_closep(&hls->pb);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user