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

Commit b3851d92 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

Change-Id: I4ab166872dc985c98d4771d4715a0d059de80dd7
parents 6c0c7961 db43124b
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();
    }