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
..
2025-12-08 09:50:01 +01:00
2024-10-15 09:56:01 +03:00
2023-06-21 17:23:15 +02:00
2022-08-02 10:59:49 +02:00
2023-11-27 16:30:40 +01:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2025-12-08 09:50:01 +01:00
2023-11-16 16:59:05 +01:00
2022-08-02 10:59:49 +02:00
2022-08-30 09:43:22 +02:00
2025-12-08 09:50:01 +01:00
2025-12-08 09:50:01 +01:00
2023-11-27 16:30:40 +01:00
2022-08-02 10:59:49 +02:00
2025-12-08 09:13:20 +01:00
2022-11-11 17:18:04 +01:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2025-12-08 09:50:01 +01:00
2025-12-08 09:50:01 +01:00
2025-12-08 09:50:01 +01:00
2025-12-08 08:42:26 +01:00
2022-08-02 10:59:49 +02:00
2025-12-08 09:50:01 +01:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2024-01-31 12:35:01 +01:00
2024-02-05 14:04:58 +01:00
2022-08-02 10:59:49 +02:00
2024-01-03 09:34:43 +01:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2025-10-29 12:30:43 +01:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2021-05-24 08:58:46 +02:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2025-12-19 08:46:52 +01:00
2025-04-22 13:38:57 +03:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2023-11-27 16:30:40 +01:00
2024-10-08 16:46:52 +03:00
2022-08-02 10:59:49 +02:00
2024-03-22 10:18:08 +01:00
2024-03-22 10:18:08 +01:00
2022-08-02 10:59:49 +02:00
2022-08-02 10:59:49 +02:00
2022-12-07 10:09:04 +01:00
2022-08-02 10:59:49 +02:00
2025-12-17 14:06:21 +01:00
2022-08-02 10:59:49 +02:00
2025-11-04 09:24:57 +01:00
2025-11-05 11:36:45 +01:00