Skip to content

Free glob buffers after reading thermal zones#5

Open
tauon wants to merge 1 commit intohooperbill:masterfrom
tauon:fix-glob-leak-clean
Open

Free glob buffers after reading thermal zones#5
tauon wants to merge 1 commit intohooperbill:masterfrom
tauon:fix-glob-leak-clean

Conversation

@tauon
Copy link
Copy Markdown

@tauon tauon commented Dec 9, 2025

  • free the glob_t buffer returned by glob() every loop iteration to stop the daemon’s steady RSS growth
  • handle the case where glob() fails or finds no thermal zones by returning 0

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.

1 participant