cppcheck fix memleak
This commit is contained in:
1 parent
a19e3f673a
commit
0db962640c
1 file changed
+1
-1
@@ -79,7 +79,7 @@ static int cmp_uint32(const void *a, const void *b) {
|
||||
bool check_known_default(uint8_t *csn, uint8_t *epurse, uint8_t *rmac, uint8_t *tmac, uint8_t *key) {
|
||||
|
||||
iclass_prekey_t *prekey = calloc(ICLASS_KEYS_MAX, sizeof(iclass_prekey_t));
|
||||
if (prekey == false) {
|
||||
if (prekey == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user