OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c2c17
)
cmdutils: fix unclosed file on error
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 24 Oct 2012 22:32:34 +0000
(
00:32
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 24 Oct 2012 22:32:34 +0000
(
00:32
+0200)
Fixes CID739865
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
a504ca5
..
e9565d2
100644
(file)
--- a/
cmdutils.c
+++ b/
cmdutils.c
@@
-1315,6
+1315,7
@@
int cmdutils_read_file(const char *filename, char **bufptr, size_t *size)
fseek(f, 0, SEEK_SET);
if (*size == (size_t)-1) {
av_log(NULL, AV_LOG_ERROR, "IO error: %s\n", strerror(errno));
+ fclose(f);
return AVERROR(errno);
}
*bufptr = av_malloc(*size + 1);