forked from Imagelibrary/binutils-gdb
PR26836, memory leak in parse_args
PR 26836 * lexsup.c (parse_args): Free really_longopts, longopts and shortopts.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user