mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Fix a mem leak of the disk cache directory path
This commit is contained in:
parent
03f0f065ee
commit
7ec803222f
1 changed files with 1 additions and 0 deletions
|
|
@ -459,6 +459,7 @@ dealloc(DiskCache* self) {
|
|||
self->cache_file_fd = -1;
|
||||
}
|
||||
if (self->currently_writing.data) free(self->currently_writing.data);
|
||||
free(self->cache_dir); self->cache_dir = NULL;
|
||||
Py_TYPE(self)->tp_free((PyObject*)self);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue