breakpad/src/common
Ian Barkley-Yeung 79326ebe94 Fix memory leak in Module::AddExtern
If adding a duplicate extern, we need to `delete` the extra `Extern`
object regardless of the value of enable_multiple_field_.

Fixes ASAN build of ChromeOS:
https://logs.chromium.org/logs/chromeos/buildbucket/cr-buildbucket/8793433395207218433/+/u/run_ebuild_tests/chromeos-base_google-breakpad_log

BUG=b:263148951

Change-Id: Ib6c20e9c7aa38b1530e4bac8acbf481cc9136c36
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4129701
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
2022-12-29 21:21:33 +00:00
..
android Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf Cleanup strncmp and use string_view in elf_reader.cc. 2022-12-15 13:57:12 +00:00
linux Handle compressed DWARF data in LoadDwarfCFI 2022-12-21 21:16:29 +00:00
mac Mac dump_syms: delete unused WriteSymbolFile 2022-12-14 19:37:46 +00:00
solaris Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
testdata Breakpad Linux dumper: Make StabsReader independent of endianness and word size. 2010-05-05 17:09:20 +00:00
tests Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
windows gyp: drop unused build system 2022-12-05 01:38:54 +00:00
basictypes.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
byte_cursor_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
byte_cursor.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
convert_UTF.cc Remove true/false defines in convert_UTF.cc 2020-03-19 03:19:55 +00:00
convert_UTF.h convert_UTF: rewrite in C++ 2019-09-04 20:25:23 +00:00
dwarf_cfi_to_module_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_cfi_to_module.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_cfi_to_module.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_cu_to_module_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_cu_to_module.cc Add support for compressed section headers to dump_syms. 2022-10-26 20:29:20 +00:00
dwarf_cu_to_module.h Add support for compressed section headers to dump_syms. 2022-10-26 20:29:20 +00:00
dwarf_line_to_module_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_line_to_module.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_line_to_module.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_range_list_handler.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
dwarf_range_list_handler.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
language.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
language.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
long_string_dictionary_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
long_string_dictionary.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
long_string_dictionary.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
macros.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
md5.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
md5.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_allocator_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_allocator.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_range_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
memory_range.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
minidump_type_helper.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
module_unittest.cc Support marking folded symbols on Posix 2022-11-01 16:53:01 +00:00
module.cc Fix memory leak in Module::AddExtern 2022-12-29 21:21:33 +00:00
module.h Speed up testing for multiple functions at an address on Posix 2022-11-17 18:38:51 +00:00
path_helper.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
path_helper.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
safe_math_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
safe_math.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
scoped_ptr.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
simple_string_dictionary_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
simple_string_dictionary.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
simple_string_dictionary.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_reader_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_reader.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_reader.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_to_module_unittest.cc Changes FunctionNames.Mangled to check for regex instead of equality 2022-10-12 19:22:15 +00:00
stabs_to_module.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stabs_to_module.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
stdio_wrapper.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_conversion_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_conversion.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_conversion.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
string_view.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
symbol_data.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
test_assembler_unittest.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
test_assembler.cc Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
test_assembler.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
unordered.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00
using_std_string.h Update copyright boilerplate, 2022 edition (Breakpad) 2022-09-07 16:59:53 +00:00