From 52315ae32932243f9b99e386ae052010e745d835 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Wed, 18 Oct 2017 15:42:45 -0700 Subject: [PATCH] bootstat: remove extraneous android_logcat_destroy. android_logcat_pclose already does that. Bug: http://b/67960705 Test: mma Change-Id: I03d06b10807e8a313c9654c2e1db36bfb59e3f99 --- bootstat/bootstat.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index f8eaa1cd3..8916c598a 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -508,7 +508,6 @@ std::string BootReasonStrToReason(const std::string& boot_reason) { android::base::ReadFdToString(fileno(fp), &content); } android_logcat_pclose(&ctx, fp); - android_logcat_destroy(&ctx); static const char logcat_battery[] = "W/healthd ( 0): battery l="; const char* match = logcat_battery;