[emu,scard] flag allocator with nolint
The allocator keeps an internal list of allocated contexts. No manual free required.
This commit is contained in:
parent
48a387938d
commit
7f27e168b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user