mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 21:03:23 -07:00
More coverity fixes
This commit is contained in:
parent
0ce5620254
commit
ca4714cd23
6 changed files with 20 additions and 7 deletions
|
@ -35,6 +35,7 @@ int saveFile(const char *preferredName, const char *suffix, const void* data, si
|
|||
FILE *fileHandle=fopen(fileName,"wb");
|
||||
if(!fileHandle) {
|
||||
prnlog("Failed to write to file '%s'", fileName);
|
||||
free(fileName);
|
||||
return 1;
|
||||
}
|
||||
fwrite(data, 1, datalen, fileHandle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue