a few calloc checks, still many to go
This commit is contained in:
1 parent
74c60301d1
commit
c37ca881e6
12 files changed
+84
-1
No files matched your search
@@ -547,6 +547,10 @@ static void topaz_print_control_TLVs(uint8_t *memory) {
|
||||
old = old->next;
|
||||
}
|
||||
new = old->next = (dynamic_lock_area_t *) calloc(sizeof(dynamic_lock_area_t), sizeof(uint8_t));
|
||||
if (new == NULL) {
|
||||
PrintAndLogEx(ERR, "Memory allocation failed");
|
||||
return;
|
||||
}
|
||||
}
|
||||
new->next = NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user