mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avformat/mpegenc: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c73b288927
commit
47b9481d9d
@ -517,7 +517,7 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx)
|
||||
|
||||
fail:
|
||||
for (i = 0; i < ctx->nb_streams; i++)
|
||||
av_free(ctx->streams[i]->priv_data);
|
||||
av_freep(&ctx->streams[i]->priv_data);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user