Commit 76b74015 authored by earthdok@chromium.org's avatar earthdok@chromium.org

Annotate a GnuTLS memory leak in printing/backend/print_backend_cups.cc

Fixes memory leak in PrintPreviewDialogControllerUnitTest.* (unit_tests).

R=thestig@chromium.org
BUG=176888

Review URL: https://chromiumcodereview.appspot.com/19714003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213286 0039d316-1c4b-4281-b951-d872f2087c98
parent 19a81eda
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment