Skip to content

Commit 3ddf41a

Browse files
committed
Add comment re ownership
Signed-off-by: Dennis Keck <[email protected]>
1 parent 40f398e commit 3ddf41a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llama-cpp-2/src/mtmd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ impl MtmdInputChunks {
627627
let chunk_ptr =
628628
unsafe { llama_cpp_sys_2::mtmd_input_chunks_get(self.chunks.as_ptr(), index) };
629629

630+
// Note: We don't own this chunk, it's owned by the chunks collection
630631
NonNull::new(chunk_ptr.cast_mut()).map(|ptr| MtmdInputChunk {
631632
chunk: ptr,
632633
owned: false,

0 commit comments

Comments
 (0)