mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
loadFile: fix double free
This commit is contained in:
parent
9764381aa4
commit
abddff513e
3 changed files with 6 additions and 12 deletions
|
@ -248,6 +248,7 @@ int CmdFlashMemLoad(const char *Cmd){
|
|||
res = loadFile(filename, "bin", data, &datalen);
|
||||
//int res = loadFileEML( filename, "eml", data, &datalen);
|
||||
if ( res ) {
|
||||
free(data);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -607,4 +608,4 @@ int CmdHelp(const char *Cmd) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue