mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 18:48:54 +02:00
Fix a mem leak of the disk cache directory path
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user