Skip to content

Commit

Permalink
Update src/transport/UnauthenticatedSessionTable.h
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
andy31415 and bzbarsky-apple authored Feb 14, 2024
1 parent 34d4707 commit a7135f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/UnauthenticatedSessionTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class UnauthenticatedSessionTable
entryToUse = FindLeastRecentUsedEntry();
VerifyOrReturnError(entryToUse != nullptr, CHIP_ERROR_NO_MEMORY);

// clean the least recent entry to allow for a new alloc
// Drop the least recent entry to allow for a new alloc.
mEntries.ReleaseObject(entryToUse);
entryToUse = mEntries.CreateObject(sessionRole, ephemeralInitiatorNodeID, config, *this);

Expand Down

0 comments on commit a7135f4

Please sign in to comment.