aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-11-03 23:49:41 +0000
committerSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-11-03 23:49:41 +0000
commit3b4ac42ff8798ecebe32e73644170e261b044f64 (patch)
tree6da7823d9361488e5bc5538471446ca3e898a4ed /src/tools
parentTiny fix for memory allocation/deallocation mismatch (diff)
downloadbreakpad-3b4ac42ff8798ecebe32e73644170e261b044f64.tar.xz
Fix broken build of mac crash report tool.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@723 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/mac/crash_report/on_demand_symbol_supplier.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/mac/crash_report/on_demand_symbol_supplier.mm b/src/tools/mac/crash_report/on_demand_symbol_supplier.mm
index f71aebd9..00360f67 100644
--- a/src/tools/mac/crash_report/on_demand_symbol_supplier.mm
+++ b/src/tools/mac/crash_report/on_demand_symbol_supplier.mm
@@ -171,14 +171,13 @@ OnDemandSymbolSupplier::GetCStringSymbolData(const CodeModule *module,
symbol_file,
&symbol_data_string);
if (result == FOUND) {
- unsigned int size = symbol_data_string.size() + 1;
- *symbol_data = new char[size];
+ *symbol_data = new char[symbol_data_string.size() + 1];
if (*symbol_data == NULL) {
// Should return INTERRUPT on memory allocation failure.
return INTERRUPT;
}
strcpy(*symbol_data, symbol_data_string.c_str());
- memory_buffers_.insert(make_pair(module->code_file(), *symbol_data);
+ memory_buffers_.insert(make_pair(module->code_file(), *symbol_data));
}
return result;
}