Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Issue 395002: Fixing a mem leak which affects 3 unittests (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by ivanpe.google
Modified:
13 years, 1 month ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

Fixing a mem leak which affects 3 unittests.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Incorporating changes from code review #

Total comments: 4

Patch Set 3 : Fixing function comment #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M processor/stackwalker_amd64_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M processor/stackwalker_arm_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M processor/stackwalker_unittest_utils.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M processor/stackwalker_x86_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 8
ivanpe.google
.
13 years, 2 months ago #1
Mark Mentovai
http://breakpad.appspot.com/395002/diff/1/processor/stackwalker_arm_unittest.cc File processor/stackwalker_arm_unittest.cc (right): http://breakpad.appspot.com/395002/diff/1/processor/stackwalker_arm_unittest.cc#newcode98 processor/stackwalker_arm_unittest.cc:98: char *buffer = reinterpret_cast<char*>(operator new(buffer_size)); I think it might ...
13 years, 2 months ago #2
Ted Mielczarek
http://breakpad.appspot.com/395002/diff/1/processor/stackwalker_arm_unittest.cc File processor/stackwalker_arm_unittest.cc (right): http://breakpad.appspot.com/395002/diff/1/processor/stackwalker_arm_unittest.cc#newcode98 processor/stackwalker_arm_unittest.cc:98: char *buffer = reinterpret_cast<char*>(operator new(buffer_size)); On 2012/06/08 12:10:04, Mark ...
13 years, 2 months ago #3
ivanpe.google
Moved the symbol data allocation code into the symbol supplier as suggested. Thanks, -Ivan
13 years, 1 month ago #4
ivanpe.google
Can you take another look? Thanks, -Ivan http://breakpad.appspot.com/395002/diff/1/processor/stackwalker_arm_unittest.cc File processor/stackwalker_arm_unittest.cc (right): http://breakpad.appspot.com/395002/diff/1/processor/stackwalker_arm_unittest.cc#newcode98 processor/stackwalker_arm_unittest.cc:98: char *buffer ...
13 years, 1 month ago #5
Mark Mentovai
http://breakpad.appspot.com/395002/diff/4001/processor/stackwalker_unittest_utils.h File processor/stackwalker_unittest_utils.h (right): http://breakpad.appspot.com/395002/diff/4001/processor/stackwalker_unittest_utils.h#newcode180 processor/stackwalker_unittest_utils.h:180: // Keeps a reference to the newly allocated buffer ...
13 years, 1 month ago #6
ivanpe.google
Mark, can you take another look. Thanks, -Ivan http://breakpad.appspot.com/395002/diff/4001/processor/stackwalker_unittest_utils.h File processor/stackwalker_unittest_utils.h (right): http://breakpad.appspot.com/395002/diff/4001/processor/stackwalker_unittest_utils.h#newcode180 processor/stackwalker_unittest_utils.h:180: // ...
13 years, 1 month ago #7
Mark Mentovai
13 years, 1 month ago #8
The point of my suggestion was to use const char* because I didn’t expect that
callers would actually need to write to the storage, but if const would ripple
through the codebase in uncontrollable ways, then this is fine for now.

LGTM.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted