projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3991c7a
)
PR26836, memory leak in parse_args
author
Alan Modra
<amodra@gmail.com>
Mon, 14 Dec 2020 09:04:20 +0000
(19:34 +1030)
committer
Alan Modra
<amodra@gmail.com>
Mon, 14 Dec 2020 13:06:09 +0000
(23:36 +1030)
PR 26836
* lexsup.c (parse_args): Free really_longopts, longopts and
shortopts.
ld/ChangeLog
patch
|
blob
|
history
ld/lexsup.c
patch
|
blob
|
history
diff --git
a/ld/ChangeLog
b/ld/ChangeLog
index fcc3b9b77661fba319a252e8cd7e9a70a7c2317b..8792daf9c19b74b5186c5bcb562e2da265852162 100644
(file)
--- a/
ld/ChangeLog
+++ b/
ld/ChangeLog
@@
-1,3
+1,9
@@
+2020-12-14 Alan Modra <amodra@gmail.com>
+
+ PR 26836
+ * lexsup.c (parse_args): Free really_longopts, longopts and
+ shortopts.
+
2020-12-14 Nick Clifton <nickc@redhat.com>
PR 27050
diff --git
a/ld/lexsup.c
b/ld/lexsup.c
index 88e33a17a0835c3be139be3123a73717f9ee6dd8..78b1834e61e679b7a6983b377aaa55ad2b1c644a 100644
(file)
--- a/
ld/lexsup.c
+++ b/
ld/lexsup.c
@@
-1699,6
+1699,10
@@
parse_args (unsigned argc, char **argv)
}
}
+ free (really_longopts);
+ free (longopts);
+ free (shortopts);
+
/* Run a couple of checks on the map filename. */
if (config.map_filename)
{