summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_xiph.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-23 15:33:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-23 15:33:57 +0100
commitba8d2c90cd986a007fabea9b6358bb3f6bffd3a5 (patch)
treedb94509b46c4e2b3714dd5e3fc3e672020b988f7 /libavformat/rtpdec_xiph.c
parent40948819fcfe5bba39531df358dc50d52cee10d4 (diff)
avformat/rtpdec_xiph: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_xiph.c')
-rw-r--r--libavformat/rtpdec_xiph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index dc34f9e224..53b4975278 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -67,8 +67,8 @@ static inline void free_fragment_if_needed(PayloadContext * data)
static void xiph_free_context(PayloadContext * data)
{
free_fragment_if_needed(data);
- av_free(data->split_buf);
- av_free(data);
+ av_freep(&data->split_buf);
+ av_freep(&data);
}
static av_cold int xiph_vorbis_init(AVFormatContext *ctx, int st_index,