diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 559e8ab7cc..db59555e45 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -249,7 +249,6 @@ static int avi_write_header(AVFormatContext *s) break; case CODEC_TYPE_AUDIO: if (put_wav_header(pb, stream) < 0) { - av_free(avi); return -1; } break;