Skip to content

Commit

Permalink
use leak annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
malloxpb committed Jul 17, 2018
1 parent d40e72d commit b6abe2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions url_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <stddef.h>
#include <string.h>

// #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"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b6abe2b

Please sign in to comment.