aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-05 16:57:09 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-05 16:57:09 -0800
commit119d62ffb87b8e6fc24d1cfa040586ec94f5655a (patch)
tree64fca5075f9b92824cfcc8b0561fa522bee9b087 /ld/ChangeLog
parent8e2470d34f4306cc3a21fdcd8099443896a61313 (diff)
downloadgdb-119d62ffb87b8e6fc24d1cfa040586ec94f5655a.zip
gdb-119d62ffb87b8e6fc24d1cfa040586ec94f5655a.tar.gz
gdb-119d62ffb87b8e6fc24d1cfa040586ec94f5655a.tar.bz2
Close fd only if fd != -1
This patch closes fd only if fd != -1. * plugin.c (release_input_file): Set fd to -1 after closing it. (plugin_maybe_claim): Close fd only if fd != -1.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0d767ba..4ae174b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
+ * plugin.c (release_input_file): Set fd to -1 after closing it.
+ (plugin_maybe_claim): Close fd only if fd != -1.
+
+2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
+
PR ld/17878
* plugin.c: Include <errno.h>.
(errno): New. Declare if needed.