fix coverity mem leaks

This commit is contained in:
iceman1001 committed 2026-07-03 11:37:57 +02:00
1 parent 41ad752a95
commit 546ec40dc6
2 files changed
+2

No files matched your search

+1
View File
@@ -924,6 +924,7 @@ int AutoCorrelate(const int *in, int *out, size_t len, size_t window, bool SaveG
}
} else {
PrintAndLogEx(HINT, "Hint: No repeating pattern found, try increasing window size");
free(correl_buf);
// return value -1, indication to increase window size
return -1;
}
+1
View File
@@ -570,6 +570,7 @@ static int CmdFlashMemDump(const char *Cmd) {
int res = pm3_get_flash_pages64k(&spi_flash_pages);
if (res != PM3_SUCCESS) {
PrintAndLogEx(ERR, "failed to get flash pages count (%x)", res);
CLIParserFree(ctx);
return res;
}