fix coverity mem leaks
This commit is contained in:
1 parent
41ad752a95
commit
546ec40dc6
2 files changed
+2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user