Skip to content
Snippets Groups Projects
Commit 3f56224a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/rtpdec_mpeg4: Use av_freep() to avoid leaving stale pointers in memory

parent ef05af82
No related branches found
No related tags found
No related merge requests found
...@@ -95,9 +95,9 @@ static PayloadContext *new_context(void) ...@@ -95,9 +95,9 @@ static PayloadContext *new_context(void)
static void free_context(PayloadContext *data) static void free_context(PayloadContext *data)
{ {
av_free(data->au_headers); av_freep(&data->au_headers);
av_free(data->mode); av_freep(&data->mode);
av_free(data); av_freep(&data);
} }
static int parse_fmtp_config(AVCodecContext *codec, char *value) static int parse_fmtp_config(AVCodecContext *codec, char *value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment