Free allocated varargs

Bug: 78173836
Test: atest incidentd_test
Change-Id: I1e1b9f63d0e863c733c51efef432235eb94cdbab
This commit is contained in:
Yi Jin
2018-04-06 15:37:36 -07:00
parent 82c0b73e98
commit 480de784a3

View File

@@ -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
} // namespace android