diff --git a/libavformat/movenc.c b/libavformat/movenc.c index b917a59fb5..e21c32a30b 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3598,7 +3598,7 @@ static int mov_create_chapter_track(AVFormatContext *s, int tracknum) track->enc->extradata = buf; track->enc->extradata_size = size; } else { - av_free(&buf); + av_freep(&buf); } } #endif