Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
47b9481d9d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegenc.c

+ 1
- 1
libavformat/mpegenc.c 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);
}



Loading…
Cancel
Save