diff options
author | eustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-02 12:42:04 +0000 |
---|---|---|
committer | eustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-02 12:42:04 +0000 |
commit | 8d892fa8aa54d8c29444ce0058f69b96ce025639 (patch) | |
tree | 694bac3462243e14ba3c5b38ec642527f189650a /url | |
parent | 28a7e95c78c04d996ab325c81f73507964419e6b (diff) | |
download | chromium_src-8d892fa8aa54d8c29444ce0058f69b96ce025639.zip chromium_src-8d892fa8aa54d8c29444ce0058f69b96ce025639.tar.gz chromium_src-8d892fa8aa54d8c29444ce0058f69b96ce025639.tar.bz2 |
Annotate leak.
Comments in code say that this is intentional leak.
BUG=390498
Review URL: https://codereview.chromium.org/360263002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url')
-rw-r--r-- | url/url_util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/url/url_util.cc b/url/url_util.cc index 9f2ad2c..8ab889f 100644 --- a/url/url_util.cc +++ b/url/url_util.cc @@ -7,6 +7,7 @@ #include <string.h> #include <vector> +#include "base/debug/leak_annotations.h" #include "base/logging.h" #include "url/url_canon_internal.h" #include "url/url_file.h" @@ -383,6 +384,7 @@ void AddStandardScheme(const char* new_scheme) { // Dulicate the scheme into a new buffer and add it to the list of standard // schemes. This pointer will be leaked on shutdown. char* dup_scheme = new char[scheme_len + 1]; + ANNOTATE_LEAKING_OBJECT_PTR(dup_scheme); memcpy(dup_scheme, new_scheme, scheme_len + 1); InitStandardSchemes(); |