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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user