cleanup
This commit is contained in:
@ -120,7 +120,6 @@ void *thread_rgt(void *data){
|
|||||||
pthread_mutex_lock(&mutex_rgt);
|
pthread_mutex_lock(&mutex_rgt);
|
||||||
|
|
||||||
pthread_mutex_lock(&mutex_mid);
|
pthread_mutex_lock(&mutex_mid);
|
||||||
/* TODO(2025-06-13T01:24:43) fix the occasional wrongly coppied path */
|
|
||||||
free(rgt_content);
|
free(rgt_content);
|
||||||
rgt_content = malloc(sizeof(file));
|
rgt_content = malloc(sizeof(file));
|
||||||
rgt_content[0].file_name = malloc(file_current.file_name_width + 1);
|
rgt_content[0].file_name = malloc(file_current.file_name_width + 1);
|
||||||
@ -141,7 +140,7 @@ void *thread_rgt(void *data){
|
|||||||
get_dir_content(path, &rgt_file_count, rgt_content);
|
get_dir_content(path, &rgt_file_count, rgt_content);
|
||||||
rgt_content[0].status &= ~FILE_STATUS_FILE_OPEN;
|
rgt_content[0].status &= ~FILE_STATUS_FILE_OPEN;
|
||||||
free(path);
|
free(path);
|
||||||
} else if (rgt_content[0].file_type == FILE_TYPE_REGULAR) {
|
} else {
|
||||||
|
|
||||||
rgt_file_count = 1;
|
rgt_file_count = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user