covery 265060 resource leak
This commit is contained in:
@@ -473,6 +473,7 @@ int createMfcKeyDump(const char *preferredName, uint8_t sectorsCnt, sector_t *e_
|
|||||||
FILE *f = fopen(fileName, "wb");
|
FILE *f = fopen(fileName, "wb");
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
PrintAndLogEx(WARNING, "Could not create file " _YELLOW_("%s"), fileName);
|
PrintAndLogEx(WARNING, "Could not create file " _YELLOW_("%s"), fileName);
|
||||||
|
free(fileName);
|
||||||
return PM3_EFILE;
|
return PM3_EFILE;
|
||||||
}
|
}
|
||||||
PrintAndLogEx(SUCCESS, "Generating binary key file");
|
PrintAndLogEx(SUCCESS, "Generating binary key file");
|
||||||
|
|||||||
Reference in New Issue
Block a user