Commit ba8d2c90 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/rtpdec_xiph: use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 40948819
...@@ -67,8 +67,8 @@ static inline void free_fragment_if_needed(PayloadContext * data) ...@@ -67,8 +67,8 @@ static inline void free_fragment_if_needed(PayloadContext * data)
static void xiph_free_context(PayloadContext * data) static void xiph_free_context(PayloadContext * data)
{ {
free_fragment_if_needed(data); free_fragment_if_needed(data);
av_free(data->split_buf); av_freep(&data->split_buf);
av_free(data); av_freep(&data);
} }
static av_cold int xiph_vorbis_init(AVFormatContext *ctx, int st_index, static av_cold int xiph_vorbis_init(AVFormatContext *ctx, int st_index,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment