am beb4fa62: am b8fb72e0: am 0b0435ea: [gatekeeperd] fix file descriptor leak

* commit 'beb4fa627b8da911a2d61d5e51b8df6af6c76c74':
  [gatekeeperd] fix file descriptor leak
This commit is contained in:
Andres Morales 2015-07-10 18:05:33 +00:00 committed by Android Git Automerger
commit 5767a723bb

View file

@ -112,6 +112,7 @@ public:
int fd = open(filename, O_RDONLY);
if (fd < 0) return 0;
read(fd, &sid, sizeof(sid));
close(fd);
return sid;
}