PR jit/63854: Don't leak producer_string in dwarf2out.c
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 19:57:09 +0000 (19:57 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 19:57:09 +0000 (19:57 +0000)
gcc/ChangeLog:
PR jit/63854
* dwarf2out.c (dwarf2out_c_finalize): Free producer_string.

From-SVN: r217801

gcc/ChangeLog
gcc/dwarf2out.c

index 1768094b16c901d7282463281688b3298db70878..959a0829f472dc77d8e98cb7a5964373b152402d 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/63854
+       * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
+
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
 
        PR jit/63854
index b16883fceb780544090a7f803454842afe9373db..9069f9a37fdd2f4a238b129194c839259a0e36a8 100644 (file)
@@ -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"