summaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 14:51:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 14:51:04 +0100
commitbf3126db6a600e9103ecea948589e1f8b195b8f4 (patch)
tree621223bed2541cc03df91db1f950dade123e4d3d /libavformat/hlsenc.c
parent26c72d2941d9e390597b04a6dee60befd36b55ac (diff)
downloadffmpeg-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.c2
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;
}
OpenPOWER on IntegriCloud