mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
av_tempfile: fix leak in error case
Fixes CID733796 Part2 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
229ccce6cc
commit
c9454cb643
@ -175,6 +175,7 @@ int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_c
|
||||
if (fd < 0) {
|
||||
int err = AVERROR(errno);
|
||||
av_log(&file_log_ctx, AV_LOG_ERROR, "ff_tempfile: Cannot open temporary file %s\n", *filename);
|
||||
av_freep(filename);
|
||||
return err;
|
||||
}
|
||||
return fd; /* success */
|
||||
|
Loading…
Reference in New Issue
Block a user