Fix bug where file handle wasn't closed on success

This commit is contained in:
Nick ODell 2013-08-06 17:15:09 -06:00
parent eb546db56b
commit 34f531553a

View File

@ -410,6 +410,8 @@ void load_key(char *path)
}
}
if(fclose(data_file) < 0)
perror("[!] fclose failed");
return;
FILE_ERROR: