From b6abe2b1cbfcc1fa85d7e2e304281f21e1f4f992 Mon Sep 17 00:00:00 2001 From: nctl144 Date: Tue, 17 Jul 2018 12:12:06 -0500 Subject: [PATCH] use leak annotations --- url_util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url_util.cc b/url_util.cc index e7b71ec..ad76925 100644 --- a/url_util.cc +++ b/url_util.cc @@ -7,7 +7,7 @@ #include #include -// #include "base/debug/leak_annotations.h" +#include "base/debug/leak_annotations.h" // #include "base/logging.h" #include "base/strings/string_util.h" #include "url/url_canon_internal.h" @@ -497,7 +497,7 @@ void DoAddSchemeWithType(const char* new_scheme, // Duplicate 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); + ANNOTATE_LEAKING_OBJECT_PTR(dup_scheme); memcpy(dup_scheme, new_scheme, scheme_len + 1); SchemeWithType scheme_with_type;