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:
Michael Niedermayer 2014-12-21 19:24:11 +01:00
parent c73b288927
commit 47b9481d9d

View File

@ -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);
}