From: Klas Lindfors Date: Mon, 15 Oct 2012 17:13:07 +0000 (+0200) Subject: use ykds_free() to free YK_STATUS instead of straight free X-Git-Tag: v1.8.1~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb81a1010cd3f1fe7b4a68817bcb4cc8ea1e974;p=yubikey-personalization use ykds_free() to free YK_STATUS instead of straight free --- diff --git a/ykchalresp.c b/ykchalresp.c index 62fb4b0..0b0d316 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -157,7 +157,7 @@ static int check_firmware(YK_KEY *yk, bool verbose) YK_STATUS *st = ykds_alloc(); if (!yk_get_status(yk, st)) { - free(st); + ykds_free(st); return 0; } @@ -173,7 +173,7 @@ static int check_firmware(YK_KEY *yk, bool verbose) (ykds_version_major(st) == 2 && ykds_version_minor(st) < 2)) { fprintf(stderr, "Challenge-response not supported before YubiKey 2.2.\n"); - free(st); + ykds_free(st); return 0; }