summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/protocol_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/safe_browsing/protocol_manager.cc')
-rw-r--r--chrome/browser/safe_browsing/protocol_manager.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc
index af0194f..0f43a03 100644
--- a/chrome/browser/safe_browsing/protocol_manager.cc
+++ b/chrome/browser/safe_browsing/protocol_manager.cc
@@ -299,12 +299,15 @@ bool SafeBrowsingProtocolManager::HandleServiceResponse(const GURL& url,
// database.
if (reset) {
sb_service_->ResetDatabase();
+ delete chunk_deletes;
return true;
}
// Chunks to delete from our storage.
if (!chunk_deletes->empty())
sb_service_->HandleChunkDelete(chunk_deletes);
+ else
+ delete chunk_deletes;
break;
}