Skip to content

Fix GameConfig handle leak - #27

Merged
Rushaway merged 4 commits into
masterfrom
fix/gameconfig-handle-leak
Sep 21, 2026
Merged

Rushaway merged 4 commits into
masterfrom
fix/gameconfig-handle-leak

Conversation

@Rushaway

Copy link
Copy Markdown
Member

Summary

  • hGameConf from LoadGameConfigFile() was never freed on any exit path of OnPluginStart().

Fixes #26

Test plan

  • Compiled cleanly via the local SourcePawn compiler, no errors/warnings.

🤖 Generated with Claude Code

hGameConf from LoadGameConfigFile() was never closed on either exit path
of OnPluginStart().

Fixes #26

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 20, 2026 09:44

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Fixes a GameConfig handle leak during plugin startup.

Changes:

  • Cleans up hGameConf on failure and normal completion paths.
File Description
addons/​sourcemod/​scripting/​FixFuncRotating.sp Adds complete game-config handle cleanup.

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

@Rushaway
Rushaway merged commit 1ad2a33 into master Sep 21, 2026
6 checks passed
@Rushaway
Rushaway deleted the fix/gameconfig-handle-leak branch September 21, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GameConfig handle from LoadGameConfigFile is never closed

2 participants