aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto/lto.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r--gcc/lto/lto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index d77d85d..99d58cf 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -2288,6 +2288,8 @@ do_stream_out (char *temp_filename, lto_symtab_encoder_t encoder)
ipa_write_optimization_summaries (encoder);
+ free (CONST_CAST (char *, file->filename));
+
lto_set_current_out_file (NULL);
lto_obj_file_close (file);
free (file);