mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
coverity fix 286920
This commit is contained in:
parent
04a16ddeb5
commit
e36a8ca5fb
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ int preferences_save(void) {
|
|||
char* backupFilename = (char *)calloc(fnLen, sizeof(uint8_t));
|
||||
if (backupFilename == NULL) {
|
||||
PrintAndLogEx(ERR, "failed to allocate memory");
|
||||
free(fn);
|
||||
return PM3_EMALLOC;
|
||||
}
|
||||
snprintf(backupFilename, fnLen, "%s.bak", fn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue