Commit 229ccce6 authored by Michael Niedermayer's avatar Michael Niedermayer

libxvid_rc: fix leaks in ff_xvid_rate_control_init()

Fixes CID733796 Part1
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4b20b21b
......@@ -57,6 +57,8 @@ int ff_xvid_rate_control_init(MpegEncContext *s){
if (write(fd, tmp, strlen(tmp)) < 0) {
av_log(NULL, AV_LOG_ERROR, "Error %s writing 2pass logfile\n", strerror(errno));
av_free(tmp_name);
close(fd);
return AVERROR(errno);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment