]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/hlsenc.c
avformat/rtsp: Use avio_closep() to avoid leaving stale pointers in memory
[ffmpeg] / libavformat / hlsenc.c
index f46e8d4a53b9dd3bab3d8fd78f5a478e2d07071d..a76dbce6e156d941f36e8658f836e5246a2fa23d 100644 (file)
@@ -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;
 }