FIXED: Merged all Holimans code-review issues which should fix a lot of memoryleaks.
This commit is contained in:
1 parent
7c756d6892
commit
a61b4976bd
18 files changed
+142
-137
No files matched your search
@@ -737,16 +737,14 @@ int doTestsWithKnownInputs()
|
||||
|
||||
int readKeyFile(uint8_t key[8])
|
||||
{
|
||||
|
||||
FILE *f;
|
||||
|
||||
int retval = 1;
|
||||
f = fopen("iclass_key.bin", "rb");
|
||||
if (f)
|
||||
{
|
||||
if(fread(key, sizeof(key), 1, f) == 1) return 0;
|
||||
}
|
||||
return 1;
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user