From 657db00e3d8da625c27218848b88184fcb8ed539 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Thu, 1 Mar 2018 10:54:21 -0800 Subject: [PATCH] Add a NOLINT for the memory leak we added Added by I7255d45335fa009dc9e5de99dff67af52bd70e06 Bug: None Test: Ran the analyzer. Complaint is gone. Change-Id: Id9b8debd8b9690210f5a8e19154ee3a5095b8fbd --- adb/client/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/adb/client/main.cpp b/adb/client/main.cpp index e5666bc8d..31cb8536a 100644 --- a/adb/client/main.cpp +++ b/adb/client/main.cpp @@ -77,6 +77,7 @@ void adb_server_cleanup() { static void intentionally_leak() { void* p = ::operator new(1); + // The analyzer is upset about this leaking. NOLINTNEXTLINE LOG(INFO) << "leaking pointer " << p; }