[gatekeeperd] fix file descriptor leak

Bug: 22403703
Change-Id: I65da3b3b3f85db035d79277344beb5460cb025f2
This commit is contained in:
Andres Morales 2015-07-10 09:47:09 -07:00
parent 8104616696
commit 0b0435ea87

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;
}