FIXED: Merged all Holimans code-review issues which should fix a lot of memoryleaks.

This commit is contained in:
iceman1001 committed 2014-10-30 00:09:01 +01:00
1 parent 7c756d6892
commit a61b4976bd
18 files changed
+142 -137

No files matched your search

+2 -4
View File
@@ -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;
}