diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/coverage.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e3efc369de..52e36d4bee8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-10-10 David Malcolm <dmalcolm@redhat.com> + + * coverage.c (coverage_finish): Fix leak of da_file_name. + 2013-10-10 Jan Hubicka <jh@suse.cz> * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES diff --git a/gcc/coverage.c b/gcc/coverage.c index 9bc23c4bd9f..3c36c6f3f4b 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -1209,6 +1209,9 @@ coverage_finish (void) fn_ctor = coverage_obj_fn (fn_ctor, fn->fn_decl, fn); coverage_obj_finish (fn_ctor); } + + XDELETEVEC (da_file_name); + da_file_name = NULL; } #include "gt-coverage.h" |