From b705fe729a1752449d7976ded2a01186862a03d0 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 19 Nov 2014 19:57:09 +0000 Subject: [PATCH] PR jit/63854: Don't leak producer_string in dwarf2out.c gcc/ChangeLog: PR jit/63854 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string. From-SVN: r217801 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1768094b16c..959a0829f47 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * dwarf2out.c (dwarf2out_c_finalize): Free producer_string. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index b16883fceb7..9069f9a37fd 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -24741,6 +24741,8 @@ dwarf2out_c_finalize (void) frame_pointer_fb_offset = 0; frame_pointer_fb_offset_valid = false; base_types.release (); + XDELETEVEC (producer_string); + producer_string = NULL; } #include "gt-dwarf2out.h" -- 2.30.2