Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 642a7d17 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

incident_helper: Fix incorrect deletion

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

Test: TreeHugger
Bug: 150145113
Change-Id: I765e726cd6dbde550fb22f643140f1faba217dfb
parent a38ba93e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {