summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 20:08:24 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 20:19:20 +0100
commite360d030b3620dd7dfdfb635b4254af7620d9a4f (patch)
treee60f9849feb2ecbd08756823d059b733b24a1cc9 /libavformat/rtsp.c
parent816577716bc6170bccfea3b9e865618b69a4b426 (diff)
avformat/rtsp: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 7276b79407..c9ffba468a 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -684,7 +684,7 @@ void ff_rtsp_undo_setup(AVFormatContext *s, int send_packets)
avio_close_dyn_buf(rtpctx->pb, &ptr);
av_free(ptr);
} else {
- avio_close(rtpctx->pb);
+ avio_closep(&rtpctx->pb);
}
avformat_free_context(rtpctx);
} else if (CONFIG_RTPDEC && rt->transport == RTSP_TRANSPORT_RDT)