incident_helper: Fix incorrect deletion

We match our deletion of memory with how it was allocated.

Test: TreeHugger
Bug: 150145113
Change-Id: I765e726cd6dbde550fb22f643140f1faba217dfb
This commit is contained in:
Greg Kaiser
2020-03-02 08:47:54 -08:00
parent a38ba93e26
commit 642a7d1746

View File

@@ -244,7 +244,7 @@ Reader::Reader(const int fd)
Reader::~Reader()
{
if (mFile != nullptr) fclose(mFile);
free(mBuffer);
delete[] mBuffer;
}
bool Reader::readLine(std::string* line) {