From: Sylvestre Ledru <sylvestre@debian.org>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH] lto-wrapper.c (copy_file): Fix resource leaks
Date: Sun, 14 May 2017 10:23:00 -0000 [thread overview]
Message-ID: <8ce6151e-5784-38d0-eabb-a2fc4ae1b4da@debian.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 45 bytes --]
Add missing fclose
CID 1407987, 1407986
S
[-- Attachment #2: 0005-2017-05-14-Sylvestre-Ledru-sylvestre-debian.org.patch --]
[-- Type: text/x-patch, Size: 772 bytes --]
From d255827a64012fb81937d6baa8534eabecf9b735 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre@debian.org>
Date: Sun, 14 May 2017 11:37:37 +0200
Subject: [PATCH 5/5] 2017-05-14 Sylvestre Ledru <sylvestre@debian.org>
* lto-wrapper.c (copy_file): Fix resource leaks
CID 1407987, 1407986
---
gcc/lto-wrapper.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 4b86f939ca2..832ffde3e40 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -838,6 +838,8 @@ copy_file (const char *dest, const char *src)
fatal_error (input_location, "writing output file");
}
}
+ fclose (d);
+ fclose (s);
}
/* Find the crtoffloadtable.o file in LIBRARY_PATH, make copy and pass name of
--
2.11.0
next reply other threads:[~2017-05-14 10:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-14 10:23 Sylvestre Ledru [this message]
2017-05-15 21:59 ` Jeff Law
2017-05-16 8:02 ` Sylvestre Ledru
2017-06-26 13:24 ` Sylvestre Ledru
2017-06-26 13:58 ` Jakub Jelinek
2017-06-26 15:22 ` Jeff Law
2017-06-26 15:26 ` Jakub Jelinek
2017-06-29 23:30 ` Jeff Law
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ce6151e-5784-38d0-eabb-a2fc4ae1b4da@debian.org \
--to=sylvestre@debian.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).