diff --git a/src/nfc_linux.c b/src/nfc_linux.c index 4b69eb1..5fe3630 100644 --- a/src/nfc_linux.c +++ b/src/nfc_linux.c @@ -237,7 +237,7 @@ nfc_new(uint32_t dev) if ((ctx = calloc(1, sizeof(*ctx))) == NULL || (ctx->nl = fido_nl_new()) == NULL) { - nfc_free(&ctx); + free(ctx); return NULL; }