[PR #8836] [CLOSED] fix: fix memory leak in uhd_slice_image function #11528

Closed
opened 2025-11-12 16:16:13 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8836
Author: @yushihang
Created: 2/5/2025
Status: Closed

Base: mainHead: possible-leak-of-refine_image


📝 Commits (1)

  • a8de082 fix: fix memory leak in uhd_slice_image function

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 llama/llama.cpp/examples/llava/clip.cpp (+1 -0)

📄 Description

Add clip_image_u8_free to release refine_image after use to prevent memory leak.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/8836 **Author:** [@yushihang](https://github.com/yushihang) **Created:** 2/5/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `possible-leak-of-refine_image` --- ### 📝 Commits (1) - [`a8de082`](https://github.com/ollama/ollama/commit/a8de08224c116b72d6931d6450f0877130b57fe4) fix: fix memory leak in uhd_slice_image function ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `llama/llama.cpp/examples/llava/clip.cpp` (+1 -0) </details> ### 📄 Description Add clip_image_u8_free to release refine_image after use to prevent memory leak. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-12 16:16:13 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#11528