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

Commit 739d7864 authored by Greg Kaiser's avatar Greg Kaiser Committed by android-build-merger
Browse files

Merge "tools/bit: Avoid leak in error condition" am: db43124b

am: b3851d92

Change-Id: I6b51d22ee200e11b5a731461f295f5da8937a683
parents 0eb80546 b3851d92
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -241,6 +241,8 @@ read_file(const string& filename)

    char* buf = (char*)malloc(size);
    if ((size_t) size != fread(buf, 1, size, file)) {
        free(buf);
        fclose(file);
        return string();
    }