* commit 'beb4fa627b8da911a2d61d5e51b8df6af6c76c74': [gatekeeperd] fix file descriptor leak
This commit is contained in:
commit
5767a723bb
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue