mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
fix few mem leaks
This commit is contained in:
parent
78c153fe74
commit
1f364106ce
14 changed files with 31 additions and 15 deletions
|
@ -89,6 +89,8 @@ int GetModels(char *Models[], int *count, uint8_t *width) {
|
|||
memcpy(tmp, model.name, size);
|
||||
Models[mode] = tmp;
|
||||
width[mode] = plen(model.spoly);
|
||||
} else {
|
||||
free(tmp);
|
||||
}
|
||||
}
|
||||
mfree(&model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue