mirror of
https://github.com/simon987/sist2.git
synced 2025-12-12 15:08:53 +00:00
Adjust some structs
This commit is contained in:
@@ -248,7 +248,6 @@ void write_document_func(void *arg) {
|
||||
zstd_write_string(json_str, json_str_len + 1);
|
||||
|
||||
free(json_str);
|
||||
free(doc->filepath);
|
||||
}
|
||||
|
||||
void zstd_close() {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
__always_inline
|
||||
parse_job_t *create_fs_parse_job(const char *filepath, const struct stat *info, int base) {
|
||||
int len = (int) strlen(filepath);
|
||||
parse_job_t *job = malloc(sizeof(parse_job_t) + len);
|
||||
parse_job_t *job = malloc(sizeof(parse_job_t));
|
||||
|
||||
strcpy(job->filepath, filepath);
|
||||
job->base = base;
|
||||
|
||||
Reference in New Issue
Block a user