From 480de784a3cce81b464c52969d3560486b575e92 Mon Sep 17 00:00:00 2001 From: Yi Jin Date: Fri, 6 Apr 2018 15:37:36 -0700 Subject: [PATCH] Free allocated varargs Bug: 78173836 Test: atest incidentd_test Change-Id: I1e1b9f63d0e863c733c51efef432235eb94cdbab --- cmds/incidentd/src/Section.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/incidentd/src/Section.cpp b/cmds/incidentd/src/Section.cpp index 45d628100bce6..79b804af98964 100644 --- a/cmds/incidentd/src/Section.cpp +++ b/cmds/incidentd/src/Section.cpp @@ -308,7 +308,7 @@ GZipSection::GZipSection(int id, const char* filename, ...) : Section(id) { } } -GZipSection::~GZipSection() {} +GZipSection::~GZipSection() { free(mFilenames); } status_t GZipSection::Execute(ReportRequestSet* requests) const { // Reads the files in order, use the first available one. @@ -927,4 +927,4 @@ status_t TombstoneSection::BlockingCall(int pipeWriteFd) const { } // namespace incidentd } // namespace os -} // namespace android \ No newline at end of file +} // namespace android