From: Jun Zhao <[email protected]> close the input file if open output fail
Signed-off-by: Jun Zhao <[email protected]> --- ffbuild/bin2c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffbuild/bin2c.c b/ffbuild/bin2c.c index dfeedd7669..168b0c658d 100644 --- a/ffbuild/bin2c.c +++ b/ffbuild/bin2c.c @@ -38,8 +38,10 @@ int main(int argc, char **argv) return -1; output = fopen(argv[2], "wb"); - if (!output) + if (!output) { + fclose(input); return -1; + } if (argc == 4) { name = argv[3]; -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
