aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-01-31 16:15:55 +0000
committerted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-01-31 16:15:55 +0000
commit015e79275ea010c72b2b255d595c5ae63ac3cc1a (patch)
treea8bb52c7563982820a7cb8a28e3ed5b2abbd9320 /src
parentInclude the compilation directory for FILE entries, making them absolute inst... (diff)
downloadbreakpad-015e79275ea010c72b2b255d595c5ae63ac3cc1a.tar.xz
Remove a call to new[] from WriteDSODebugStream
R=mark at https://breakpad.appspot.com/523002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1107 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src')
-rw-r--r--src/client/linux/minidump_writer/minidump_writer.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/linux/minidump_writer/minidump_writer.cc b/src/client/linux/minidump_writer/minidump_writer.cc
index 6b6a2c0d..92632014 100644
--- a/src/client/linux/minidump_writer/minidump_writer.cc
+++ b/src/client/linux/minidump_writer/minidump_writer.cc
@@ -1144,11 +1144,10 @@ class MinidumpWriter {
debug.get()->ldbase = (void*)debug_entry.r_ldbase;
debug.get()->dynamic = dynamic;
- char* dso_debug_data = new char[dynamic_length];
- dumper_->CopyFromProcess(dso_debug_data, GetCrashThread(), dynamic,
+ wasteful_vector<char> dso_debug_data(dumper_->allocator(), dynamic_length);
+ dumper_->CopyFromProcess(&dso_debug_data[0], GetCrashThread(), dynamic,
dynamic_length);
- debug.CopyIndexAfterObject(0, dso_debug_data, dynamic_length);
- delete[] dso_debug_data;
+ debug.CopyIndexAfterObject(0, &dso_debug_data[0], dynamic_length);
return true;
}