From 17d6ce50071b56b492104c596b7e320442a9460a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 3 Jun 2020 14:26:09 +0200 Subject: [PATCH] coverity 290398 --- client/src/cmdhf15.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/cmdhf15.c b/client/src/cmdhf15.c index b2a01b7ff..65946b7d5 100644 --- a/client/src/cmdhf15.c +++ b/client/src/cmdhf15.c @@ -1686,6 +1686,7 @@ static int CmdHF15Restore(const char *Cmd) { if ((datalen % blocksize) != 0) { PrintAndLogEx(WARNING, "Datalen %zu isn't dividable with blocksize %zu", datalen, blocksize); + free(data); return PM3_ESOFT; }