Browse Source

libxvid_rc: fix leaks in ff_xvid_rate_control_init()

Fixes CID733796 Part1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
229ccce6cc
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/libxvid_rc.c

+ 2
- 0
libavcodec/libxvid_rc.c View File

@@ -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);
}
}


Loading…
Cancel
Save