Skip to content

Conversation

@myungjoo
Copy link
Member

@myungjoo myungjoo commented Dec 10, 2025

NOTE: This does not fix the client's reported bug.

Fixes a memory leak by ensuring proper pipeline destruction and state management in ml-api-service-agent-client.

The previous implementation could lead to memory leaks on the daemon side when ml_service_pipeline_launch() and _ml_service_pipeline_release_internal() were called repeatedly from multiple threads or processes. This was due to server->id not being correctly initialized to indicate an unlaunched state and not properly handling pipeline ID 0 during destruction, or not resetting the ID after destruction, leading to orphaned pipelines.


Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Dec 10, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

3 participants