fix double-free with --no-mmap
This commit is contained in:
parent
4e94af3060
commit
1102ff56db
1 changed files with 0 additions and 2 deletions
|
@ -650,8 +650,6 @@ struct llama_model_loader {
|
||||||
// hint the OS that we don't need the data anymore
|
// hint the OS that we don't need the data anymore
|
||||||
// TODO: this may be a bad idea with devices that use the system memory (Metal?)
|
// TODO: this may be a bad idea with devices that use the system memory (Metal?)
|
||||||
mapping->discard(lt.data, lt.size);
|
mapping->discard(lt.data, lt.size);
|
||||||
} else {
|
|
||||||
free(lt.data);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue