diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-08 14:51:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-08 14:51:04 +0100 |
commit | bf3126db6a600e9103ecea948589e1f8b195b8f4 (patch) | |
tree | 621223bed2541cc03df91db1f950dade123e4d3d /libavformat/hlsenc.c | |
parent | 26c72d2941d9e390597b04a6dee60befd36b55ac (diff) | |
download | ffmpeg-streaming-bf3126db6a600e9103ecea948589e1f8b195b8f4.zip ffmpeg-streaming-bf3126db6a600e9103ecea948589e1f8b195b8f4.tar.gz |
avformat/hlsenc: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index f46e8d4..a76dbce 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -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; } |