mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-04 22:22:24 +03:00
uri: Prevent memory leak when opening compressed files
This commit is contained in:
parent
82aec4b1b2
commit
9b07351208
@ -282,8 +282,9 @@ struct file_handle *uri_open(char *uri) {
|
||||
compressed_fd->path = ext_mem_alloc(ret->path_len);
|
||||
memcpy(compressed_fd->path, ret->path, ret->path_len);
|
||||
compressed_fd->path_len = ret->path_len;
|
||||
fclose(ret);
|
||||
compressed_fd->is_memfile = true;
|
||||
fclose(ret);
|
||||
pmm_free(src, ret->size);
|
||||
ret = compressed_fd;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user