From 0db962640c6bb0033af547305ee29ed3ead33d70 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 3 Sep 2021 23:43:16 +0200 Subject: [PATCH] cppcheck fix memleak --- client/src/cmdhficlass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 764562340..15fb5d72f 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -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; }