summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-04 17:01:31 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-04 17:01:31 +0000
commitce0fdb91bdc982869c2847238b0ebddd6619884b (patch)
tree96769359ce012259654f91716b76a0672d78ae15 /gcc/opts.c
parenta115dd2cd61b9394f674b8bd6cb91570607cfc17 (diff)
downloadgcc-ce0fdb91bdc982869c2847238b0ebddd6619884b.tar.gz
2012-10-03 Tobias Burnus <burnus@net-b.de>
* gcc.c (record_temp_file, add_sysrooted_prefix, * process_command, do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks. (do_spec_1): Ditto, fix out-of-bound access. * opts.c (common_handle_option): Plug memleak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192088 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 8608a56dfe3..ccfe3c70a91 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1475,6 +1475,8 @@ common_handle_option (struct gcc_options *opts,
strip_off_ending (tmp, strlen (tmp));
if (tmp[0])
opts->x_aux_base_name = tmp;
+ else
+ free (tmp);
}
break;