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)