Skip to content

client: fix JobservTail resource leak and nil dereference#525

Merged
vkhoroz merged 1 commit into
foundriesio:mainfrom
MrCry0:fix-jobservtail-nil-deref
Mar 16, 2026
Merged

client: fix JobservTail resource leak and nil dereference#525
vkhoroz merged 1 commit into
foundriesio:mainfrom
MrCry0:fix-jobservtail-nil-deref

Conversation

@MrCry0
Copy link
Copy Markdown
Contributor

@MrCry0 MrCry0 commented Mar 14, 2026

Close the HTTP response body after reading to prevent connection leaks in the polling loop. Also return on RawGet error instead of falling through to a nil pointer dereference on resp.Body.

Close the HTTP response body after reading to prevent connection leaks
in the polling loop. Also return on RawGet error instead of falling
through to a nil pointer dereference on resp.Body.

Signed-off-by: Oleksandr Suvorov <cryosay@gmail.com>
@MrCry0 MrCry0 force-pushed the fix-jobservtail-nil-deref branch from 1dc5288 to dd00312 Compare March 14, 2026 22:13
Copy link
Copy Markdown
Member

@vkhoroz vkhoroz left a comment

Choose a reason for hiding this comment

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

Thanks @MrCry0
LGTM

@vkhoroz vkhoroz merged commit 7f9aeba into foundriesio:main Mar 16, 2026
9 checks passed
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.

2 participants