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

Issue 3026029: Fix EntryKernel leak if sync database load fails (Closed)

Created:
10 years, 4 months ago by ncarter (slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), ben+cc_chromium.org, tim (not reviewing), idana, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Fix leaks found by sync unit tests. 1. Fix EntryKernel leak if sync database load fails. 2. DirectoryBackingStore: always close the load handle. 3. DirectoryBackingStore unittests: free when .clear()ing test index 4. Fix real bad leak in Directory::PurgeEntriesWithTypeIn. BUG=50334, 50335, 50336, 50347, 50348, 50349 TEST=sync_unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53994

Patch Set 1 #

Patch Set 2 : Clean up only in one spot. #

Patch Set 3 : Fix leaks in tests themselves. #

Patch Set 4 : Fix legit leak in PurgeEntriesWithTypeIn #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -27 lines) Patch
M chrome/browser/sync/syncable/directory_backing_store.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store.cc View 2 chunks +29 lines, -9 lines 2 comments Download
M chrome/browser/sync/syncable/directory_backing_store_unittest.cc View 5 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 1 2 3 5 chunks +12 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ncarter (slow)
Patch set updated, please take a look.
10 years, 4 months ago (2010-07-28 18:35:02 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/3026029/diff/7001/8001 File chrome/browser/sync/syncable/directory_backing_store.cc (right): http://codereview.chromium.org/3026029/diff/7001/8001#newcode228 chrome/browser/sync/syncable/directory_backing_store.cc:228: if (!LoadEntries(entry_bucket)) I don't think this is what you ...
10 years, 4 months ago (2010-07-28 19:00:54 UTC) #2
tim (not reviewing)
LGTM
10 years, 4 months ago (2010-07-28 19:16:01 UTC) #3
ncarter (slow)
http://codereview.chromium.org/3026029/diff/7001/8001 File chrome/browser/sync/syncable/directory_backing_store.cc (right): http://codereview.chromium.org/3026029/diff/7001/8001#newcode228 chrome/browser/sync/syncable/directory_backing_store.cc:228: if (!LoadEntries(entry_bucket)) On 2010/07/28 19:00:54, timsteele wrote: > I ...
10 years, 4 months ago (2010-07-28 19:17:19 UTC) #4
Timur Iskhodzhanov
10 years, 4 months ago (2010-07-29 07:19:22 UTC) #5
Thanks for fixing the leaks!

Powered by Google App Engine
This is Rietveld 408576698