Commit 47b9481d authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c73b2889
...@@ -517,7 +517,7 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx) ...@@ -517,7 +517,7 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx)
fail: fail:
for (i = 0; i < ctx->nb_streams; i++) 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); return AVERROR(ENOMEM);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment