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

Commit fb4a4553 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Benchmark: Avoid potential memory leak"

parents 931d1554 8a28df6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,10 +94,10 @@ bool BenchmarkTestEnvironment::writeStatsHeader() {
        return false;
    }
    int32_t numBytes = fwrite(statsHeader, sizeof(char), sizeof(statsHeader), fpStats);
    fclose(fpStats);
    if(numBytes != sizeof(statsHeader)) {
        return false;
    }
    fclose(fpStats);
    return true;
}