]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a leak of the abbrev hash table when --read-var-info=yes is given
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 25 Aug 2015 21:39:44 +0000 (21:39 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 25 Aug 2015 21:39:44 +0000 (21:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15590

coregrind/m_debuginfo/readdwarf3.c

index 0e04bbeab29c739a5ca8e2e349f1267c2867ea76..cfc9e595b7c4e9ba56fec4034c360bf0a9320619 100644 (file)
@@ -4590,8 +4590,9 @@ void new_dwarf3_reader_wrk (
          cu_offset_now = (cu_start_offset + cc.unit_length
                           + (cc.is_dw64 ? 12 : 4));
 
+         clear_CUConst ( &cc);
+
          if (cu_offset_now >= escn_debug_types.szB) {
-            clear_CUConst ( &cc);
             break;
          }