mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02: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…
x
Reference in New Issue
Block a user