mirror of
https://github.com/Tha14/toxic.git
synced 2025-11-11 05:16:38 +01:00
Fixing couple leaking file descriptors
This commit is contained in:
@@ -284,6 +284,8 @@ int dir_match(ToxWindow *self, Tox *m, const wchar_t *line, const wchar_t *cmd)
|
||||
}
|
||||
}
|
||||
|
||||
closedir(dp);
|
||||
|
||||
if (dircount == 0)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user