[emu,scard] flag allocator with nolint

The allocator keeps an internal list of allocated contexts. No manual
free required.
This commit is contained in:
akallabeth 2024-11-11 16:20:13 +01:00
parent 48a387938d
commit 7f27e168b3
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -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;