Files
Tobias Wiese a94e52cb9e nfc_linux: Don't close stdin if fido_nl_new fails
The call to nfc_free is not needed because when calloc fails ctx will be
NULL and nfc_free will do nothing, when fido_nl_new() fails ctx->nl will
be null and does not need to be freed.
Additionally ctx->fd is 0 (due to calloc zero-initializing ctx) and
should not be closed.
Therefore I replaced this with a free call to just undo the (potential)
allocation by calloc.

Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
2025-12-19 08:46:52 +01:00
..
2023-11-27 16:30:40 +01:00
2023-11-27 16:30:40 +01:00
2022-11-11 17:18:04 +01:00
2025-12-08 08:42:26 +01:00
2024-01-31 12:35:01 +01:00
2021-05-24 08:58:46 +02:00
2023-11-27 16:30:40 +01:00
2024-03-22 10:18:08 +01:00
2024-03-22 10:18:08 +01:00
2022-12-07 10:09:04 +01:00
2025-11-04 09:24:57 +01:00
2025-11-05 11:36:45 +01:00