summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_mpeg4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-24 13:01:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-24 13:14:07 +0100
commit3f56224a9a83719b5bb42ad0bb9a6267b131e50b (patch)
tree2f27e4b7f1875211b401a7b15a10e464923f6b92 /libavformat/rtpdec_mpeg4.c
parentef05af82b275c6e97f1e0bfdf92a3d9c56881aff (diff)
avformat/rtpdec_mpeg4: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_mpeg4.c')
-rw-r--r--libavformat/rtpdec_mpeg4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
index 6ab3e64789..9655d302a3 100644
--- a/libavformat/rtpdec_mpeg4.c
+++ b/libavformat/rtpdec_mpeg4.c
@@ -95,9 +95,9 @@ static PayloadContext *new_context(void)
static void free_context(PayloadContext *data)
{
- av_free(data->au_headers);
- av_free(data->mode);
- av_free(data);
+ av_freep(&data->au_headers);
+ av_freep(&data->mode);
+ av_freep(&data);
}
static int parse_fmtp_config(AVCodecContext *codec, char *value)