fix few mem leaks

This commit is contained in:
Philippe Teuwen committed 2019-10-06 01:18:04 +02:00
1 parent 78c153fe74
commit 1f364106ce
14 files changed
+31 -15

No files matched your search

+2
View File
@@ -757,6 +757,7 @@ static int CmdHFiClassELoad(const char *Cmd) {
}
default:
PrintAndLogEx(ERR, "No dictionary loaded");
free(dump);
return PM3_ESOFT;
}
@@ -977,6 +978,7 @@ static int CmdHFiClassEncryptBlk(const char *Cmd) {
return PM3_EINVARG;
memcpy(key, keyptr, sizeof(key));
free(keyptr);
}
iClassEncryptBlkData(blk_data, key);