[PR #10523] ollamarunner: Fix memory leak when processing images #13265

Closed
opened 2026-04-13 00:22:26 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10523

State: closed
Merged: Yes


The context (and therefore associated input tensors) was not being properly closed when images were being processed. We were trying to close them but in reality we were closing over an empty list, preventing anything from actually being freed.

Fixes #10434

**Original Pull Request:** https://github.com/ollama/ollama/pull/10523 **State:** closed **Merged:** Yes --- The context (and therefore associated input tensors) was not being properly closed when images were being processed. We were trying to close them but in reality we were closing over an empty list, preventing anything from actually being freed. Fixes #10434
GiteaMirror added the pull-request label 2026-04-13 00:22:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13265