Skip to content

Commit 1102ff5

Browse files
committed
fix double-free with --no-mmap
1 parent 4e94af3 commit 1102ff5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llama.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,6 @@ struct llama_model_loader {
650650
// hint the OS that we don't need the data anymore
651651
// TODO: this may be a bad idea with devices that use the system memory (Metal?)
652652
mapping->discard(lt.data, lt.size);
653-
} else {
654-
free(lt.data);
655653
}
656654
}
657655

0 commit comments

Comments
 (0)