From 7f27e168b35b9e52800c5f4a24b95c9ba162cdb2 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 11 Nov 2024 16:20:13 +0100 Subject: [PATCH] [emu,scard] flag allocator with nolint The allocator keeps an internal list of allocated contexts. No manual free required. --- libfreerdp/emu/scard/smartcard_virtual_gids.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfreerdp/emu/scard/smartcard_virtual_gids.c b/libfreerdp/emu/scard/smartcard_virtual_gids.c index fb3f72e32..d9158a9ca 100644 --- a/libfreerdp/emu/scard/smartcard_virtual_gids.c +++ b/libfreerdp/emu/scard/smartcard_virtual_gids.c @@ -1503,11 +1503,13 @@ BOOL vgids_init(vgidsContext* ctx, const char* cert, const char* privateKey, con goto init_failed; /* create masterfile */ + // NOLINTNEXTLINE(clang-analyzer-unix.Malloc) masterEF = vgids_ef_new(ctx, VGIDS_EFID_MASTER); if (!masterEF) goto init_failed; /* create cardid file with cardid DO */ + // NOLINTNEXTLINE(clang-analyzer-unix.Malloc) cardidEF = vgids_ef_new(ctx, VGIDS_EFID_CARDID); if (!cardidEF) goto init_failed; @@ -1516,6 +1518,7 @@ BOOL vgids_init(vgidsContext* ctx, const char* cert, const char* privateKey, con goto init_failed; /* create user common file */ + // NOLINTNEXTLINE(clang-analyzer-unix.Malloc) commonEF = vgids_ef_new(ctx, VGIDS_EFID_COMMON); if (!commonEF) goto init_failed;