From c65a4ee1460ef3087c3fd1d83aa438f58a3a2b13 Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Tue, 25 Aug 2015 21:39:44 +0000 Subject: [PATCH] Fix a leak of the abbrev hash table when --read-var-info=yes is given git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15590 --- coregrind/m_debuginfo/readdwarf3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coregrind/m_debuginfo/readdwarf3.c b/coregrind/m_debuginfo/readdwarf3.c index 0e04bbeab..cfc9e595b 100644 --- a/coregrind/m_debuginfo/readdwarf3.c +++ b/coregrind/m_debuginfo/readdwarf3.c @@ -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; }