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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/101/head
Michael Niedermayer 10 years ago
parent c73b288927
commit 47b9481d9d
  1. 2
      libavformat/mpegenc.c

@ -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…
Cancel
Save