[PR #8840] [CLOSED] fix: fix memory management for img_res_v #44042

Closed
opened 2026-04-24 23:35:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: fix/img-res-memory-cleanup


📝 Commits (1)

  • 9fd4d8a fix: fix memory management for img_res_v

📊 Changes

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

View changed files

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

📄 Description

  • Add missing memory cleanup in minicpmv/qwen2vl branch
  • Standardize memory cleanup across all branches
  • Reset size and pointer after memory deallocation to prevent dangling pointers

This change ensures consistent memory management and prevents potential memory leaks in the image processing pipeline.


🔄 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/8840 **Author:** [@yushihang](https://github.com/yushihang) **Created:** 2/5/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/img-res-memory-cleanup` --- ### 📝 Commits (1) - [`9fd4d8a`](https://github.com/ollama/ollama/commit/9fd4d8aa4e47a9beb4311484dc11080f09ee5774) fix: fix memory management for img_res_v ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `llama/llama.cpp/examples/llava/llava.cpp` (+7 -0) </details> ### 📄 Description - Add missing memory cleanup in minicpmv/qwen2vl branch - Standardize memory cleanup across all branches - Reset size and pointer after memory deallocation to prevent dangling pointers This change ensures consistent memory management and prevents potential memory leaks in the image processing pipeline. --- <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 2026-04-24 23:35:10 -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#44042