From b7e8ee86a042da0d1a03ae308047cde7f59e8861 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 3 Jan 2020 18:08:42 +0100 Subject: [PATCH] covery 265060 resource leak --- client/fileutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/fileutils.c b/client/fileutils.c index a11dbcd2a..b13a092eb 100644 --- a/client/fileutils.c +++ b/client/fileutils.c @@ -473,6 +473,7 @@ int createMfcKeyDump(const char *preferredName, uint8_t sectorsCnt, sector_t *e_ FILE *f = fopen(fileName, "wb"); if (f == NULL) { PrintAndLogEx(WARNING, "Could not create file " _YELLOW_("%s"), fileName); + free(fileName); return PM3_EFILE; } PrintAndLogEx(SUCCESS, "Generating binary key file");