summaryrefslogtreecommitdiff
path: root/libavformat/mpegenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-21 19:24:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-21 19:24:11 +0100
commit47b9481d9db8a362d464b7383dc7b149e0119789 (patch)
tree2761ff8a85eb6d93f5de453c964981afe3580c35 /libavformat/mpegenc.c
parentc73b28892748f87bcac3855837e63dddd573e4d1 (diff)
avformat/mpegenc: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegenc.c')
-rw-r--r--libavformat/mpegenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index f0fe7714c6..8339f8b4f2 100644
--- a/libavformat/mpegenc.c
+++ b/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);
}