Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Issue 159075: Fixing potential memory leak in BookmarkCodec::DecodeNode.... (Closed)

Created:
11 years, 5 months ago by Finnur
Modified:
9 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Fixing potential memory leak in BookmarkCodec::DecodeNode. Coverity finds a condition where this leaks. We are at the moment not using it in such a way that it leaks, but that might of course change. It looks to me like the API is not intended to be used in such a way anyway, so we can just check for it and return false. BUG=15350 TEST=Decoding bookmarks should work as before. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22379

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M chrome/browser/bookmarks/bookmark_codec.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Finnur
Bit of a blind fix. Look at it with suspicious eyes. :)
11 years, 5 months ago (2009-07-20 15:16:32 UTC) #1
Finnur
Scott is out this week. Munjal, can you review in his absense? On 2009/07/20 15:16:32, ...
11 years, 5 months ago (2009-07-22 00:27:34 UTC) #2
sky
I think this should be a DCHECK rather than an if. -Scott On 2009/07/22 00:27:34, ...
11 years, 4 months ago (2009-07-30 16:12:02 UTC) #3
Finnur
How about adding a NOTREACHED inside the if to make both you and Coverity happy? ...
11 years, 4 months ago (2009-08-01 13:37:05 UTC) #4
sky
11 years, 4 months ago (2009-08-03 15:02:05 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698