Skip to content

feat: close persistent references held on a context#1923

Open
Skarlso wants to merge 1 commit intoopen-component-model:mainfrom
Skarlso:fix-leaking-registry-handler
Open

feat: close persistent references held on a context#1923
Skarlso wants to merge 1 commit intoopen-component-model:mainfrom
Skarlso:fix-leaking-registry-handler

Conversation

@Skarlso
Copy link
Copy Markdown
Contributor

@Skarlso Skarlso commented Apr 20, 2026

What this PR does / why we need it

Closes dangling context references. All allocations are done all the time and finalizers don't truly close references. This means that everytime a context is created the ref is basically never cleaned up. This leads to the memory leak observed in the attached issue. This close will be called in the controller explicitly.

Which issue(s) this PR is related to

Related to open-component-model/ocm-project#778.

On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
@Skarlso Skarlso requested a review from a team as a code owner April 20, 2026 07:26
@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension size/s Small labels Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature new feature, enhancement, improvement, extension size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant