mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix bug where file handle wasn't closed on success
This commit is contained in:
parent
eb546db56b
commit
34f531553a
|
@ -410,6 +410,8 @@ void load_key(char *path)
|
|||
}
|
||||
}
|
||||
|
||||
if(fclose(data_file) < 0)
|
||||
perror("[!] fclose failed");
|
||||
return;
|
||||
|
||||
FILE_ERROR:
|
||||
|
|
Loading…
Reference in New Issue
Block a user