Skip to content
Snippets Groups Projects
Commit 47b9481d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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

parent c73b2889
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment