Skip to content

test_auth_keyboard_info_request: delete unused free_count variable - #2554

Closed
vszakats wants to merge 5 commits into
libssh2:masterfrom
vszakats:free_count
Closed

vszakats wants to merge 5 commits into
libssh2:masterfrom
vszakats:free_count

Conversation

@vszakats

@vszakats vszakats commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

To fix unused variable warning with clang-tidy 23.1.0.

Follow-up to 83853f8 #663

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds allocation/free balance verification to the keyboard-interactive authentication tests.

Changes:

  • Counts only successful allocations.
  • Fails tests when allocation and free counts differ.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/test_auth_keyboard_info_request.c Outdated
Comment on lines 224 to 225
if(*abstract && *threshold_int_ptr == alloc_count + 1) {
return NULL;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just enough of the LLM crap. I revert and just drop the unused free_count.

@vszakats vszakats changed the title test_auth_keyboard_info_request: verify if alloc/free counts match test_auth_keyboard_info_request: delete unused free_count variable Aug 28, 2026
@vszakats
vszakats requested a balanced review from Copilot August 28, 2026 12:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@vszakats vszakats closed this in 1c9ff81 Aug 28, 2026
@vszakats
vszakats deleted the free_count branch August 28, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants