Index: printing/backend/print_backend_cups.cc |
diff --git a/printing/backend/print_backend_cups.cc b/printing/backend/print_backend_cups.cc |
index e13cac9967fa3967f7cdbe5dd07b1ebf29471493..44c38bb96c337ca0bc7a88d0f88a2f487bceb91f 100644 |
--- a/printing/backend/print_backend_cups.cc |
+++ b/printing/backend/print_backend_cups.cc |
@@ -16,6 +16,7 @@ |
#include <gcrypt.h> |
#endif |
+#include "base/debug/leak_annotations.h" |
#include "base/file_util.h" |
#include "base/lazy_instance.h" |
#include "base/logging.h" |
@@ -80,8 +81,14 @@ class GcryptInitializer { |
<< " in " << kGnuTlsFiles[i]; |
continue; |
} |
- if ((*pgnutls_global_init)() != 0) |
- LOG(ERROR) << "gnutls_global_init() failed"; |
+ { |
+ // GnuTLS has a genuine small memory leak that is easier to annotate |
+ // than suppress. See http://crbug.com/176888#c7 |
+ // TODO(earthdok): remove this once the leak is fixed. |
+ ANNOTATE_SCOPED_MEMORY_LEAK; |
+ if ((*pgnutls_global_init)() != 0) |
+ LOG(ERROR) << "gnutls_global_init() failed"; |
+ } |
return; |
} |
LOG(ERROR) << "Cannot find libgnutls"; |