mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 12:56:44 +02:00
Fixing couple leaking file descriptors
This commit is contained in:
@ -325,6 +325,7 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int32_t num, uint8_t
|
||||
int count = 1;
|
||||
|
||||
while ((filecheck = fopen(filename, "r"))) {
|
||||
fclose(filecheck);
|
||||
filename[len] = '\0';
|
||||
char d[9];
|
||||
sprintf(d, "(%d)", count++);
|
||||
|
Reference in New Issue
Block a user